Notifiable
trait Notifiable
Traits
Methods
unreadNotifications()
Get the entity's unread notifications.
void
notifyNow(mixed $instance, array|null $channels = null)
Send the given notification immediately.
from
RoutesNotifications
mixed
routeNotificationFor(string $driver, Notification|null $notification = null)
Get the notification routing information for the given driver.
from
RoutesNotifications
Details
in
HasDatabaseNotifications at line 16
MorphMany
notifications()
Get the entity's notifications.
in
HasDatabaseNotifications at line 27
MorphMany
readNotifications()
Get the entity's read notifications.
in
HasDatabaseNotifications at line 37
MorphMany
unreadNotifications()
Get the entity's unread notifications.
in
RoutesNotifications at line 16
void
notify(mixed $instance)
Send the given notification.
in
RoutesNotifications at line 26
void
notifyNow(mixed $instance, array|null $channels = null)
Send the given notification immediately.
in
RoutesNotifications at line 36
mixed
routeNotificationFor(string $driver, Notification|null $notification = null)
Get the notification routing information for the given driver.