api/laravel/Contracts/Database/Eloquent/SerializesCastableAttributes.yaml

32 lines
616 B
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: SerializesCastableAttributes
class_comment: null
dependencies:
- name: Model
type: class
source: Illuminate\Database\Eloquent\Model
properties: []
methods:
- name: serialize
visibility: public
parameters:
- name: model
- name: key
- name: value
- name: attributes
comment: '# * Serialize the attribute when converting the model to an array.
# *
# * @param \Illuminate\Database\Eloquent\Model $model
# * @param string $key
# * @param mixed $value
# * @param array $attributes
# * @return mixed'
traits:
- Illuminate\Database\Eloquent\Model
interfaces: []