%PDF- %PDF-
Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Client/ |
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Client/NewBooking.php |
<?php namespace App\Notifications\Client; 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 NewBooking extends Notification implements ShouldQueue { use Queueable; /** * @var array $bookings */ protected $bookings; /** * Create a new notification instance. * * @param array $bookings */ public function __construct(array $bookings) { $this->bookings = $bookings; } /** * 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('Booking successful, thank you for taking a seat with us. If you need to make any changes to your booking, please contact your therapist no later than 48hrs before the session.'); } }