LMongo\Eloquent\Model::toJson PHP Method

toJson() public method

Convert the model instance to JSON.
public toJson ( integer $options ) : string
$options integer
return string
    public function toJson($options = 0)
    {
        return json_encode($this->toArray(), $options);
    }
Model