Notification
class Notification extends ViewComponent implements Arrayable (View source)
Traits
Properties
protected string | $evaluationIdentifier | from EvaluatesClosures | |
static protected Closure>> | $macros | from Macroable | |
protected string | $view | ||
protected string|Closure|null | $defaultView | from ViewComponent | |
protected array<string,mixed> | $viewData | from ViewComponent | |
protected string | $viewIdentifier | ||
protected bool | $isInline | from CanBeInline | |
protected ActionGroup|Closure | $actions | from HasActions | |
protected string|Closure|null | $body | from HasBody | |
protected string|Closure|null | $date | from HasDate | |
protected int|string|Closure | $duration | from HasDuration | |
protected Htmlable|Closure|null | $icon | from HasIcon | |
protected IconPosition|string|Closure|null | $iconPosition | from HasIcon | |
protected IconSize|string|Closure|null | $iconSize | from HasIcon | |
protected string | $iconColor | from HasIconColor | |
protected string | $id | from HasId | |
protected string|Closure|null | $status | from HasStatus | |
protected string|Closure|null | $title | from HasTitle | |
protected string | $color | from HasColor | |
protected string | $defaultColor | from HasColor | |
protected string[] | $safeViews |
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
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
static void
macro(string $name, callable $macro)
No description
static void
mixin(object $mixin, bool $replace = true)
No description
static void
flushMacros()
No description
static mixed
__callStatic(string $method, array $parameters)
No description
mixed
__call(string $method, array $parameters)
No description
static protected callable|null
getMacro(string $method)
No description
ViewComponent
view(string|null $view, array $viewData = [])
No description
ViewComponent
defaultView(string|Closure|null $view)
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string|null
getDefaultView()
No description
string
toHtml()
No description
View
render()
No description
CanBeInline
inline(bool $condition = true)
No description
bool
isInline()
No description
HasActions
actions(ActionGroup|Closure $actions)
No description
array
getActions()
No description
HasBody
body(string|Closure|null $body)
No description
string|null
getBody()
No description
HasDate
date(string|Closure|null $date)
No description
string|null
getDate()
No description
HasDuration
duration(int|string|Closure|null $duration)
No description
int|string
getDuration()
No description
HasDuration
seconds(float $seconds)
No description
HasDuration
persistent()
No description
HasIcon
icon(Htmlable|Closure|null $icon)
No description
HasIcon
iconPosition(IconPosition|string|Closure|null $position)
No description
HasIcon
iconSize(IconSize|string|Closure|null $size)
No description
Htmlable|null
getIcon()
No description
IconPosition|string
getIconPosition()
No description
IconSize|string|null
getIconSize()
No description
HasIconColor
iconColor(string|array|Closure|null $color)
No description
string|array|null
getIconColor()
No description
in
HasId at line 16
string
getId()
No description
HasStatus
status(string|Closure|null $status)
No description
string|null
getStatus()
No description
HasStatus
danger()
No description
HasStatus
info()
No description
HasStatus
success()
No description
HasStatus
warning()
No description
HasTitle
title(string|Closure|null $title)
No description
string|null
getTitle()
No description
HasColor
color(string|array|Closure|null $color)
No description
HasColor
defaultColor(string|array|Closure|null $color)
No description
string|array|null
getColor()
No description
__construct(string $id)
No description
static Notification
make(string|null $id = null)
No description
array
getViewData()
No description
array
toArray()
No description
static Notification
fromArray(array $data)
No description
protected bool
isViewSafe(string $view)
No description
Notification
safeViews(string|array $safeViews)
No description
Notification
send()
No description
Notification
broadcast(Collection|array $users)
No description
Notification
sendToDatabase(Collection|array $users, bool $isEventDispatched = false)
No description
BroadcastNotification
toBroadcast()
No description
DatabaseNotification
toDatabase()
No description
BroadcastMessage
getBroadcastMessage()
No description
array
getDatabaseMessage()
No description
static Notification
fromDatabase(DatabaseNotification $notification)
No description
static void
assertNotified(Notification|string|null $notification = null)
No description
static void
assertNotNotified(Notification|string|null $notification = null)
No description