Json
class Json (View source)
Свойства
| static protected callable|null | $encoder | Пользовательский кодировщик JSON. | |
| static protected callable|null | $decoder | Пользовательское декодирование JSON. |
Методы
| static mixed | encode(mixed $value) Кодировать заданное значение. | |
| static mixed | decode(mixed $value, bool|null $associative = true) Декодировать заданное значение. | |
| static void | encodeUsing(callable|null $encoder) Кодировать все значения с помощью указанной лямбда-функции. | |
| static void | decodeUsing(callable|null $decoder) Декодировать все значения с помощью указанной лямбда-функции. |
Детали
static mixed encode(mixed $value)
Кодировать заданное значение.
static mixed decode(mixed $value, bool|null $associative = true)
Декодировать заданное значение.
static void encodeUsing(callable|null $encoder)
Кодировать все значения с помощью указанной лямбда-функции.
static void decodeUsing(callable|null $decoder)
Декодировать все значения с помощью указанной лямбда-функции.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Database/Eloquent/Casts/Json.html