Illuminate\Database\Eloquent\Model::jsonSerialize PHP Méthode

jsonSerialize() public méthode

Convert the object into something JSON serializable.
public jsonSerialize ( ) : array
Résultat array
    public function jsonSerialize()
    {
        return $this->toArray();
    }

Usage Example

Exemple #1
0
 function jsonSerialize()
 {
     return $this->model->jsonSerialize();
 }
All Usage Examples Of Illuminate\Database\Eloquent\Model::jsonSerialize
Model