public isSoftDeleting ( ) : boolean | ||
return | boolean |
public function isSoftDeleting()
{
return $this->softDelete;
}
/** * Restore the soft-deleted model instances. * * @return int */ public function restore() { if ($this->model->isSoftDeleting()) { $column = $this->model->getDeletedAtColumn(); return $this->update(array($column => null)); } }