UsesFormatter
trait UsesFormatter (View source)
Properties
static protected Formatter[] | $formatters |
Methods
HtmlString|string
static Formatter
getFormatter(string $attribute)
Set a formatter instance for this model.
static void
getAttribute($key)
No description
setAttribute($key, $value)
No description
Details
HtmlString|string
format(string $attribute, User $user = null)
Render an attribute as HTML for the given user.
static Formatter
getFormatter(string $attribute)
Set a formatter instance for this model.
static void
setFormatter(string $attribute, Formatter $formatter)
Set a formatter instance for this model.
getAttribute($key)
No description
setAttribute($key, $value)
No description