class DatabaseChannel (View source)

Methods

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