BaseProvider
Last updated
Last updated
Returns the name for this Provider.
This name should be the same across all different channels using the same Provider.
No arguments
Return: (string) The Provider name
Sends a to a through this Channel instance using the configured Provider.
This method will be called once for each receiving the notification, even if the method was called with multiple instances.
When implementing this method, make sure not to modify the instance as this instance will be used for each .
notifiable
true
notification
true
The Notification instance to send to the notifiable.
Return: instance, after it has been sent to the .
Determines the route the notification should be sent to by calling the routeNotificationFor{ChannelType}
method, if it exists.
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).
optional
boolean
false
false
Boolean flag determining if the routing method is optional or not.
Return: The result of the routeNotificationFor{ChannelType}
method. The variable type depends on the Provider.
The instance receiving the .