BaseNotification
via
Returns an array of channel names to send this notification on.
Name | Type | Required | Default | Description |
---|---|---|---|---|
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.
Name | Type | Required | Default | Description |
---|---|---|---|---|
properties |
| false |
| The properties to populate. |
Return: The Notification instance.
routeForType
Routes the notification to the correct to{ChannelType}
method.
Name | Type | Required | Default | Description |
---|---|---|---|---|
type |
| true | The type of channel to route to. | |
notifiable | true | The notifiable instance the notification is being sent to. | ||
channelName |
| true | The name of the channel to route to. | |
additionalArgs |
| false |
| Any additional arguments to pass to the routing method ( |
Return: The result of the routing method. The variable type depends on the Provider.
getNotificationType
Returns the WireBox ID of the Notification.
Name | Type | Required | Default | Description |
---|---|---|---|---|
No arguments |
Return: (string) The WireBox ID of the Notification.
Last updated