class
Illuminate
/
Database
/
Eloquent
/
JsonEncodingException
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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