W3cubDocs

/Laravel 8

DatabaseChannel

class DatabaseChannel (View source)

Methods

Model send(mixed $notifiable, Notification $notification)

Send the given notification.

array getData(mixed $notifiable, Notification $notification)

Get the data for the notification.

array buildPayload(mixed $notifiable, Notification $notification)

Build an array payload for the DatabaseNotification Model.

Details

Model send(mixed $notifiable, Notification $notification)

Send the given notification.

Parameters

mixed $notifiable
Notification $notification

Return Value

Model

protected array getData(mixed $notifiable, Notification $notification)

Get the data for the notification.

Parameters

mixed $notifiable
Notification $notification

Return Value

array

Exceptions

RuntimeException

protected array buildPayload(mixed $notifiable, Notification $notification)

Build an array payload for the DatabaseNotification Model.

Parameters

mixed $notifiable
Notification $notification

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Notifications/Channels/DatabaseChannel.html