LMongo\Eloquent\Model::getDeletedAtColumn PHP Method

getDeletedAtColumn() public method

Get the name of the "deleted at" column.
public getDeletedAtColumn ( ) : string
return string
    public function getDeletedAtColumn()
    {
        return static::DELETED_AT;
    }

Usage Example

Example #1
0
 /**
  * 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));
     }
 }
Model