public function getDeletedAtColumn() { return static::DELETED_AT; }
/** * 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)); } }