JsonEncodingException
class JsonEncodingException extends RuntimeException (View source)
Methods
static JsonEncodingException
forModel(mixed $model, string $message)
Create a new JSON encoding exception for the model.
static JsonEncodingException
forResource(JsonResource $resource, string $message)
Create a new JSON encoding exception for the resource.
static JsonEncodingException
forAttribute(mixed $model, mixed $key, string $message)
Create a new JSON encoding exception for an attribute.
Details
static JsonEncodingException
forModel(mixed $model, string $message)
Create a new JSON encoding exception for the model.
static JsonEncodingException
forResource(JsonResource $resource, string $message)
Create a new JSON encoding exception for the resource.
static JsonEncodingException
forAttribute(mixed $model, mixed $key, string $message)
Create a new JSON encoding exception for an attribute.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.