File: D:/HostingSpaces/SBogers10/kooken.komma.pro/app/Notifications/SiteResetPasswordNotification.php
<?php
namespace App\Notifications;
use Komma\KMS\Users\Models\KmsUser;
use App\Users\Models\SiteUser;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
class SiteResetPasswordNotification extends Notification
{
use Queueable;
/** @var KmsUser $customer */
private $customer;
/** @var string $token The password reset token */
private $token;
/**
* Create a new notification instance.
*
* @param SiteUser $customer
* @param string $token The password reset token
*/
public function __construct(SiteUser $customer, string $token)
{
$this->customer = $customer;
$this->token = $token;
}
/**
* 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($notifiable)
{
$mail = (new MailMessage)->view('emails.customer.resetPassword', [
'customer' => $this->customer,
'token' => $this->token,
])->subject(__('notifications.customer_reset_password.subject'));
return $mail;
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}