Notifiable

trait Notifiable (View source)

Traits

HasDatabaseNotifications
RoutesNotifications

Methods

notifications()

Get the entity's notifications.

from HasDatabaseNotifications
void notify(mixed $instance)

Send the given notification.

from RoutesNotifications
void notifyVia(array|string $channels, mixed $instance)

Send the given notification via the given channels.

from RoutesNotifications
mixed routeNotificationFor(string $driver)

Get the notification routing information for the given driver.

from RoutesNotifications

Details

notifications()

Get the entity's notifications.

void notify(mixed $instance)

Send the given notification.

Parameters

mixed $instance

Return Value

void

void notifyVia(array|string $channels, mixed $instance)

Send the given notification via the given channels.

Parameters

array|string $channels
mixed $instance

Return Value

void

mixed routeNotificationFor(string $driver)

Get the notification routing information for the given driver.

Parameters

string $driver

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.6/Illuminate/Notifications/Notifiable.html