That function is receiving the User ($notifiable) as a parameter, you could call a method on the $notifiable to retrieve the list of channels you want the notification to use.
public function via($notifiable) {
return $notifiable->getNotificationPreferences();
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more