Creating Custom Providers
/**
* Returns the name for this Provider.
* This name is the same across all different channels using the same Provider.
*
* @return string
*/
public string function getProviderName();
/**
* Sends a `Notification` to a `Notifiable`.
* This method will be called once for each `Notifiable` receiving the notification,
* even if the `NotificationService#notify` method was called with multiple
* `Notifiable` instances.
*
* @notifiable The `Notifiable` instance receiving the `Notification`.
* @notification The `Notification` instance to send to the `Notifiable` instance.
*
* @return The BaseNotification instance
*/
public BaseNotification function notify(
required any notifiable,
required BaseNotification notification
);routeForType
routeNotificationFor
Last updated
