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

31 lines
616 B
YAML

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