HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/bomacon.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 [
            //
        ];
    }
}