HasIcon
trait HasIcon (View source)
Methods to manage a model's icon
attribute.
The icon
attribute is stored as type:value
, where type
is one of the
following:
emoji
, wherevalue
is an emoji character (eg.emoji:😊
)svg
, wherevalue
is the name of a Blade Icon (eg.svg:tabler-heart
)file
, wherevalue
is the path to an image file
Traits
Methods to associate uploaded images with a model.
Properties
string | $icon | ||
?string | $icon_file | The path to the icon file, if the icon is the
|
Methods
void
saveIcon(array $icon)
Save the icon using input from an
Attribute
iconFile()
No description
Details
void
saveIcon(array $icon)
Save the icon using input from an
protected Attribute
iconFile()
No description