BaseNotification
via
Returns an array of channel names to send this notification on.
notifiable
true
The notifiable instance being sent this notification instance.
Return: An array of string
channel names.
populate
Populates the passed in struct of properties onto the variables scope of the Notification.
properties
struct
false
{}
The properties to populate.
Return: The Notification instance.
routeForType
Routes the notification to the correct to{ChannelType}
method.
type
string
true
The type of channel to route to.
notifiable
true
The notifiable instance the notification is being sent to.
channelName
string
true
The name of the channel to route to.
additionalArgs
struct
false
{}
Any additional arguments to pass to the routing method (to{ChannelType}
method).
Return: The result of the routing method. The variable type depends on the Provider.
getNotificationType
Returns the WireBox ID of the Notification.
No arguments
Return: (string) The WireBox ID of the Notification.
Last updated