use NotificationChannels\AwsPinpointChannel;
/**
* Get the notification's delivery channels.
*
* @return array<int, string>
*/
public function via($notifiable)
{
return ['broadcast', AwsPinpointChannel:class];
}
use NotificationChannels\AwsPinpointMessage;
/**
* Send SMS via AWS Pinpoint
*/
public function toAwsPinpoint($notifiable)
{
return (new AwsPinpointMessage)
->body('Something cool')
->senderId('My Company')
->recipients($notifiable->phone)
->promotional();
}
use Illuminate\Notifications\Notifiable;
class User extends Model
{
use Notifiable;
/**
* Route notifications for the AWS Pinpoint channel.
*
* @return array|string|int
*/
public function routeNotificationForAWSPinpoint()
{
return $this->phone;
}
}
use NotificationChannels\AwsPinpointMessage;
/**
* Send SMS via AWS Pinpoint
*/
public function toAwsPinpoint($notifiable)
{
return new AwsPinpointMessage("Something cool");
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.