api/laravel/Database/Eloquent/JsonEncodingException.yaml

57 lines
1 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: JsonEncodingException
class_comment: null
dependencies:
- name: RuntimeException
type: class
source: RuntimeException
properties: []
methods:
- name: forModel
visibility: public
parameters:
- name: model
- name: message
comment: '# * Create a new JSON encoding exception for the model.
# *
# * @param mixed $model
# * @param string $message
# * @return static'
- name: forResource
visibility: public
parameters:
- name: resource
- name: message
comment: '# * Create a new JSON encoding exception for the resource.
# *
# * @param \Illuminate\Http\Resources\Json\JsonResource $resource
# * @param string $message
# * @return static'
- name: forAttribute
visibility: public
parameters:
- name: model
- name: key
- name: message
comment: '# * Create a new JSON encoding exception for an attribute.
# *
# * @param mixed $model
# * @param mixed $key
# * @param string $message
# * @return static'
traits:
- RuntimeException
interfaces: []