class JsonEncodingException extends RuntimeException (View source)
static JsonEncodingException | forModel(mixed $model, string $message) Create a new JSON encoding exception for the model. | |
static JsonEncodingException | forResource(JsonResource $resource, string $message) Create a new JSON encoding exception for the resource. | |
static JsonEncodingException | forAttribute(mixed $model, mixed $key, string $message) Create a new JSON encoding exception for an attribute. |
Create a new JSON encoding exception for the model.
Create a new JSON encoding exception for the resource.
Create a new JSON encoding exception for an attribute.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Eloquent/JsonEncodingException.html