class InAppNotification extends Notification

A notification that is displayed through the in-app notification system.

Traits

Queueable

Constants

TYPE_DANGER

Danger notification type.

TYPE_WARNING

Warning notification type.

TYPE_SUCCESS

Success notification type.

TYPE_INFO

Info notification type.

Properties

protected string $title

Title of the notification.

protected string $message

Message (body) of the notification.

protected string $type

Notification type.

protected string $action

Label of the action link.

$actionLink

Action link (URL).

Methods

void
__construct(string $title, string $message, string $type = null, string $action = null, string $actionLink = null)

Create a new notification instance.

array
via(mixed $notifiable)

Get the notification's delivery channels.

array
toArray(mixed $notifiable)

Get the array representation of the notification.

Details

at line 88
void __construct(string $title, string $message, string $type = null, string $action = null, string $actionLink = null)

Create a new notification instance.

Parameters

string $title

Title of the notification

string $message

Message (body) of the notification

string $type

Notification type

string $action

Label of the action link

string $actionLink

Action link (URL)

Return Value

void

at line 103
array via(mixed $notifiable)

Get the notification's delivery channels.

Parameters

mixed $notifiable

Return Value

array

at line 114
array toArray(mixed $notifiable)

Get the array representation of the notification.

Parameters

mixed $notifiable

Return Value

array