use NotificationChannels\Textlocal\TextlocalChannel;
use NotificationChannels\Textlocal\TextlocalMessage;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [TextlocalChannel::class];
}
public function toSms($notifiable)
{
// OR explicitly return a TextlocalMessage object passing the message body:
return new TextlocalMessage("Your {$notifiable->service} account was approved!");
}
}
use Illuminate\Notifications\Notifiable;
class SomeModel {
use Notifiable;
public function routeNotificationForTextlocal($notification)
{
return '+1234567890';
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.