class User extends Model
{
use Notifiable;
public function routeNotificationForGlobeLabsSms()
{
return [
'access_token' => 'access-token-obtained-from-sms-opt-in-this-could-be-stored-in-your-database',
'address' => '09171234567', // can be any format as long as it is a valid mobile number
];
}
}
class AccountActivated extends Notification
{
public function via($notifiable)
{
return [GlobeLabsSmsChannel::class];
}
public function toGlobeLabsSms($notifiable)
{
return GlobeLabsSmsMessage::create($notifiable)
->setMessage('This is a test message');
}
}