trait Notifiable

Traits

Properties

string $email from  RoutesNotifications

Methods

notifications()

Get the entity's notifications.

readNotifications()

Get the entity's read notifications.

unreadNotifications()

Get the entity's unread notifications.

void
notify(mixed $instance)

Send the given notification.

void
notifyNow(mixed $instance, array|null $channels = null)

Send the given notification immediately.

mixed
routeNotificationFor(string $driver, Notification|null $notification = null)

Get the notification routing information for the given driver.

Details

MorphMany notifications()

Get the entity's notifications.

Return Value

MorphMany

MorphMany readNotifications()

Get the entity's read notifications.

Return Value

MorphMany

MorphMany unreadNotifications()

Get the entity's unread notifications.

Return Value

MorphMany

void notify(mixed $instance)

Send the given notification.

Parameters

mixed $instance

Return Value

void

void notifyNow(mixed $instance, array|null $channels = null)

Send the given notification immediately.

Parameters

mixed $instance
array|null $channels

Return Value

void

mixed routeNotificationFor(string $driver, Notification|null $notification = null)

Get the notification routing information for the given driver.

Parameters

string $driver
Notification|null $notification

Return Value

mixed