BaseNotification
Last updated
Last updated
Returns an array of channel names to send this notification on.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: An array of string
channel names.
Populates the passed in struct of properties onto the variables scope of the Notification.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The Notification instance.
Routes the notification to the correct to{ChannelType}
method.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The result of the routing method. The variable type depends on the Provider.
Returns the WireBox ID of the Notification.
Return: (string) The WireBox ID of the Notification.
Name | Type | Required | Default | Description |
---|---|---|---|---|
notifiable
true
The notifiable instance being sent this notification instance.
properties
struct
false
{}
The properties to populate.
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).
No arguments