api/laravel/Database/Eloquent/JsonEncodingException.yaml
2024-09-26 02:03:21 -07:00

56 lines
1 KiB
YAML

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: []