메소드 |
설명 |
|
__construct ( array $attributes = [] ) |
Constructor |
|
fill ( array $attributes ) |
Fill the model with an array of attributes. |
|
getDirty ( ) : array |
Get the attributes that have been changed since last sync. |
|
getOriginal ( string | null $key = null, mixed $default = null ) : array |
Get the entity's original attribute values. |
|
isFillable ( string $key ) : boolean |
Determine if the given attribute may be mass assigned. |
|
isGuarded ( string $key ) : boolean |
Determine if the given key is guarded. |
|
syncOriginal ( ) |
Sync the original attributes with the current. |
|
toArray ( ) : array |
Convert the entity instance to an array. |
|