Notifiable
trait Notifiable (View source)
Traits
Methods
DatabaseNotification, $this>
notifications()
Get the entity's 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
DatabaseNotification, $this>
notifications()
Get the entity's notifications.
Builder
readNotifications()
Get the entity's read notifications.
Builder
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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.