DraftEntity
class DraftEntity extends Entity
임시저장 데이터 객체
Properties
protected array | $original | The entity attribute's original state. | from Entity |
$hidden | The attributes that should be hidden for arrays. | from Entity | |
protected array | $fillable | The attributes that are mass assignable. | from Entity |
protected | $guarded | ||
bool | $exists | Indicates if the entity exists. | from Entity |
Methods
array
getOriginal(string|null $key = null, mixed $default = null)
Get the entity's original attribute values.
from Entity
array
toArray()
Convert the entity instance to an array.
Details
in Entity at line 72
__construct(array $attributes = array())
Constructor
in Entity at line 84
$this
syncOriginal()
Sync the original attributes with the current.
in Entity at line 98
array
getOriginal(string|null $key = null, mixed $default = null)
Get the entity's original attribute values.
in Entity at line 109
$this
fill(array $attributes)
Fill the model with an array of attributes.
in Entity at line 126
bool
isFillable(string $key)
Determine if the given attribute may be mass assigned.
in Entity at line 145
bool
isGuarded(string $key)
Determine if the given key is guarded.
in Entity at line 155
array
getDirty()
Get the attributes that have been changed since last sync.
at line 38
array
toArray()
Convert the entity instance to an array.