Notifiable
trait Notifiable
Traits
Properties
| string | from RoutesNotifications |
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 14
MorphMany
notifications()
Get the entity's notifications.
in
HasDatabaseNotifications at line 23
MorphMany
readNotifications()
Get the entity's read notifications.
in
HasDatabaseNotifications at line 31
MorphMany
unreadNotifications()
Get the entity's unread notifications.
in
RoutesNotifications at line 19
void
notify(mixed $instance)
Send the given notification.
in
RoutesNotifications at line 29
void
notifyNow(mixed $instance, array|null $channels = null)
Send the given notification immediately.
in
RoutesNotifications at line 39
mixed
routeNotificationFor(string $driver, Notification|null $notification = null)
Get the notification routing information for the given driver.