File: D:/HostingSpaces/SBogers10/boldt.komma.pro/app/Notifications/CustomerApproved.php
<?php
namespace App\Notifications;
use App\Komma\SiteUsers\Models\SiteUser;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
class CustomerApproved extends Notification
{
use Queueable;
/** @var SiteUser $customer */
private $customer;
/**
* Create a new notification instance.
*
* @param SiteUser $customer
* @param string $token
*/
public function __construct(SiteUser $customer)
{
$this->customer = $customer;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail()
{
$mail = (new MailMessage)->view('emails.customer.approved')->subject(__('notifications.customer_approved.subject'));
return $mail;
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}