LMongo\Eloquent\Model::toJson PHP Méthode

toJson() public méthode

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