CanFormatState
trait CanFormatState (View source)
Properties
protected Closure|null | $formatStateUsing | ||
protected int|Closure|null | $characterLimit | ||
protected string|Closure|null | $characterLimitEnd | ||
protected int|Closure|null | $wordLimit | ||
protected string|Closure|null | $wordLimitEnd | ||
protected Htmlable|Closure|null | $prefix | ||
protected Htmlable|Closure|null | $suffix | ||
protected string|Closure|null | $timezone | ||
protected bool|Closure | $isHtml | ||
protected bool|Closure | $isMarkdown | ||
protected bool | $isDate | ||
protected bool | $isDateTime | ||
protected bool | $isMoney | ||
protected bool | $isNumeric | ||
protected bool | $isTime |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
CanFormatState
markdown(bool|Closure $condition = true)
No description
CanFormatState
date(string|Closure|null $format = null, string|null $timezone = null)
No description
CanFormatState
dateTime(string|Closure|null $format = null, string|null $timezone = null)
No description
CanFormatState
since(string|null $timezone = null)
No description
CanFormatState
dateTooltip(string|Closure|null $format = null, string|null $timezone = null)
No description
CanFormatState
dateTimeTooltip(string|Closure|null $format = null, string|null $timezone = null)
No description
CanFormatState
timeTooltip(string|Closure|null $format = null, string|null $timezone = null)
No description
CanFormatState
sinceTooltip(string|null $timezone = null)
No description
CanFormatState
money(string|Closure|null $currency = null, int $divideBy = 0, string|Closure|null $locale = null)
No description
CanFormatState
numeric(int|Closure|null $decimalPlaces = null, ArgumentValue $decimalSeparator = ArgumentValue::Default, ArgumentValue $thousandsSeparator = ArgumentValue::Default, int|Closure|null $maxDecimalPlaces = null, string|Closure|null $locale = null)
No description
CanFormatState
time(string|Closure|null $format = null, string|null $timezone = null)
No description
CanFormatState
timezone(string|Closure|null $timezone)
No description
CanFormatState
limit(int|Closure|null $length = 100, string|Closure|null $end = '...')
No description
CanFormatState
words(int|Closure|null $words = 100, string|Closure|null $end = '...')
No description
CanFormatState
prefix(Htmlable|Closure|null $prefix)
No description
CanFormatState
suffix(Htmlable|Closure|null $suffix)
No description
CanFormatState
html(bool|Closure $condition = true)
No description
CanFormatState
formatStateUsing(Closure|null $callback)
No description
mixed
formatState(mixed $state)
No description
int|null
getCharacterLimit()
No description
string|null
getCharacterLimitEnd()
No description
int|null
getWordLimit()
No description
string|null
getWordLimitEnd()
No description
string
getTimezone()
No description
bool
isHtml()
No description
Htmlable|null
getPrefix()
No description
Htmlable|null
getSuffix()
No description
bool
isMarkdown()
No description
bool
isDate()
No description
bool
isDateTime()
No description
bool
isMoney()
No description
bool
isNumeric()
No description
bool
isTime()
No description