JsonEncodingException
extends RuntimeException
in package
Table of Contents
- forAttribute() : static
- Create a new JSON encoding exception for an attribute.
- forModel() : static
- Create a new JSON encoding exception for the model.
Methods
forAttribute()
Create a new JSON encoding exception for an attribute.
public
static forAttribute(mixed $model, mixed $key, string $message) : static
Parameters
- $model : mixed
- $key : mixed
- $message : string
Return values
static —forModel()
Create a new JSON encoding exception for the model.
public
static forModel(mixed $model, string $message) : static
Parameters
- $model : mixed
- $message : string