%PDF- %PDF-
Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Therapist/ |
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Therapist/CancelledBooking.php |
<?php namespace App\Notifications\Therapist; use App\Models\Booking; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Messages\NexmoMessage; class CancelledBooking extends Notification implements ShouldQueue { use Queueable; /** * @var Booking $booking */ protected $booking; /** * Create a new notification instance. * * @param Booking $booking */ public function __construct(Booking $booking) { $this->booking = $booking; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['nexmo']; } /** * Get the Vonage / SMS representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\NexmoMessage */ public function toNexmo($notifiable) { return (new NexmoMessage) ->content('Your session with '.$this->booking->user->full_name.' has been cancelled. Please log in to your account to book any future sessions www.takeaseat.co.uk'); } }