%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Therapist/
Upload File :
Create Path :
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Therapist/NewBooking.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 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('Congratulations you have a new booking with Take a Seat. Please log in to your account to see the details. www.takeaseat.co.uk');
    }
}

Zerion Mini Shell 1.0