Notification
abstract class Notification
Base Notification class similar to Laravel's.
Extend this for each specific notification type.
Methods
Get an array of available channels.
Returns list of all channels as an array of strings.
Generic array representation (fallback for logging, webhooks, etc.).
Representation of the notification in the database.
Representation of the notification in logging.
Representation of the notification in mail.
The delivery channels (e.g. ['database', 'mail']).
Details
at line 16
static array
channels()
Get an array of available channels.
at line 25
static array
channelValues()
Returns list of all channels as an array of strings.
at line 36
array
toArray(object $notifiable)
Generic array representation (fallback for logging, webhooks, etc.).
By default, defer to the database payload.
at line 47
array
toDatabase(object $notifiable)
Representation of the notification in the database.
at line 57
string
toLog(object $notifiable)
Representation of the notification in logging.
at line 67
array
toMail(object $notifiable)
Representation of the notification in mail.
at line 76
array
via(object $notifiable)
The delivery channels (e.g. ['database', 'mail']).