class Illuminate / Database / Eloquent / JsonEncodingException

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

public static

forAttribute ( $model , $key , $message ) : static

Create a new JSON encoding exception for an attribute.

Parameters

  • $model mixed
  • $key mixed
  • $message string