Исключение JsonEncodingException
Класс JsonEncodingException наследуется от RuntimeException (Просмотреть исходный код)
Методы
| static JsonEncodingException |
forModel(mixed $model, string $message)
Создать новое исключение кодирования JSON для модели. |
|
| static JsonEncodingException |
forResource(JsonResource $resource, string $message)
Создать новое исключение кодирования JSON для ресурса. |
|
| static JsonEncodingException |
forAttribute(mixed $model, mixed $key, string $message)
Создать новое исключение кодирования JSON для атрибута. |
Подробности
static JsonEncodingException forModel(mixed $model, string $message)
Создать новое исключение кодирования JSON для модели.
static JsonEncodingException forResource(JsonResource $resource, string $message)
Создать новое исключение кодирования JSON для ресурса.
static JsonEncodingException forAttribute(mixed $model, mixed $key, string $message)
Создать новое исключение кодирования JSON для атрибута.
© 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