class
Illuminate
/
Database
/
Eloquent
/
JsonEncodingException
You are viewing an older version of the documentation. For the latest, please visit master documentation.
JsonEncodingException
Extends
Methods
public
static
forModel ( $model , $message ) : static
Create a new JSON encoding exception for the model.
Parameters
- $model mixed
- $message string
public
static
forResource ( $resource , $message ) : static
Create a new JSON encoding exception for the resource.
Parameters
- $resource JsonResource
- $message string
public
static
forAttribute ( $model , $key , $message ) : static
Create a new JSON encoding exception for an attribute.
Parameters
- $model mixed
- $key mixed
- $message string