use AvtoDev\SmsPilotNotifications\SmsPilotChannel;
use AvtoDev\SmsPilotNotifications\Messages\SmsPilotMessage;
class Notification extends \Illuminate\Notifications\Notification
{
/**
* Get the notification channels.
*
* @param mixed $notifiable
*
* @return array|string
*/
public function via($notifiable)
{
return [SmsPilotChannel::class];
}
/**
* Get the SMS Pilot Message representation of the notification.
*
* @param mixed $notifiable
*
* @return SmsPilotMessage
*/
public function toSmsPilot($notifiable): SmsPilotMessage
{
return (new SmsPilotMessage)
->content('Some SMS notification message');
}
}
class Notifiable
{
use \Illuminate\Notifications\Notifiable;
/**
* Get route for 'SMS Pilot' notification.
*
* @param mixed $notifiable
*
* @return string
*/
public function routeNotificationForSmsPilot($notifiable): string
{
return '71112223344';
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.