use Illuminate\Notifications\Notification;
use \NotificationChannels\TouchSms\TouchSmsMessage;
use \NotificationChannels\TouchSms\TouchSmsChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [TouchSmsChannel::class];
}
public function toTouchsms($notifiable)
{
return (new TouchSmsMessage)
->content("Task #{$notifiable->id} is complete!");
}
}
public function routeNotificationForTouchsms()
{
return $this->phone; // 6142345678
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.