HasAttributes
trait HasAttributes
Methods
Add attribute casts for the model.
No description
No description
No description
Set a given attribute on the model.
No description
No description
No description
No description
No description
Convert a Carbon Time to a storable string.
Determine whether a value is Time castable for inbound manipulation.
Get the format for database stored times.
Set the time format used by the model.
Details
at line 19
void
addCasts(array $attributes)
Add attribute casts for the model.
at line 24
getAttribute($key)
No description
at line 46
getAttributeValue($key)
No description
at line 65
attributesToArray()
No description
at line 111
HasAttributes
setAttribute(string $key, mixed $value)
Set a given attribute on the model.
at line 170
protected
asSerialized($value)
No description
at line 175
fromSerialized($value)
No description
at line 180
protected
isSerializedCastable($key)
No description
at line 185
protected
asDateTime($value)
No description
at line 197
protected
asTime($value)
No description
at line 242
string
fromTime(Carbon|int $value)
Convert a Carbon Time to a storable string.
at line 259
protected bool
isTimeCastable(string $key)
Determine whether a value is Time castable for inbound manipulation.
at line 268
protected string
getTimeFormat()
Get the format for database stored times.
at line 280
HasAttributes
setTimeFormat(string $format)
Set the time format used by the model.