LMongo\Eloquent\Model::restore PHP Method

restore() public method

Restore a soft-deleted model instance.
public restore ( ) : boolean | null
return boolean | null
    public function restore()
    {
        if ($this->softDelete) {
            $this->{static::DELETED_AT} = null;
            return $this->save();
        }
    }
Model