Notification
class Notification extends ViewComponent implements Arrayable (View source)
Traits
Properties
static protected array | $configurations | from Configurable | |
static protected array | $importantConfigurations | from Configurable | |
protected string | $evaluationIdentifier | from EvaluatesClosures | |
protected array | $evaluationParametersToRemove | from EvaluatesClosures | |
protected string | $view | ||
protected array | $viewData | from ViewComponent | |
protected string | $viewIdentifier | ||
static protected array | $propertyCache | from ViewComponent | |
static protected array | $methodCache | from ViewComponent | |
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 string|Closure|null | $icon | from HasIcon | |
protected string|Closure|null | $iconColor | from HasIcon | |
protected string | $id | from HasId | |
protected string|Closure|null | $title | from HasTitle | |
protected array | $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
configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
evaluate($value, array $parameters = [], array $exceptParameters = [])
No description
protected array
getDefaultEvaluationParameters()
No description
protected
resolveEvaluationParameter(string $parameter, Closure $value)
No description
protected bool
isEvaluationParameterRemoved(string $parameter)
No description
ViewComponent
view(string $view, array $viewData = [])
No description
protected array
extractPublicProperties()
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
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(string|Closure|null $icon)
No description
HasIcon
iconColor(string|Closure|null $color)
No description
string|null
getIcon()
No description
string|null
getIconColor()
No description
in
HasId at line 16
string
getId()
No description
HasTitle
title(string|Closure|null $title)
No description
string|null
getTitle()
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
Notification
status(string $status)
No description
Notification
success()
No description
Notification
warning()
No description
Notification
danger()
No description
static Notification
fromDatabase(DatabaseNotification $notification)
No description
static void
assertNotified(Notification|string $notification = null)
No description