Notifiable
trait Notifiable (View source)
Traits
HasDatabaseNotifications |
RoutesNotifications |
Methods
MorphMany | notifications() Get the entity's notifications. | from HasDatabaseNotifications |
Builder | readNotifications() Get the entity's read notifications. | from HasDatabaseNotifications |
Builder | unreadNotifications() Get the entity's unread notifications. | from HasDatabaseNotifications |
void | notify(mixed $instance) Send the given notification. | from RoutesNotifications |
void | notifyNow(mixed $instance, array $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
MorphMany 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 $channels = null)
Send the given notification immediately.
mixed routeNotificationFor(string $driver, Notification|null $notification = null)
Get the notification routing information for the given driver.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Notifications/Notifiable.html