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/finsteps.komma.pro/app/Notifications/KmsUserRegisteredSetPassword.php
<?php

namespace App\Notifications;

use App\Users\Models\SiteUser;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;

/**
 * Class CustomerRegisteredSetPassword
 *
 * Notitication to tell a user to set his password
 *
 * @package App\Notifications
 */
class KmsUserRegisteredSetPassword extends Notification
{
    use Queueable;

    /** @var SiteUser $authenticatable */
    private $authenticatable;

    /** @var string */
    private $token;

    /**
     * Create a new notification instance.
     *
     * @param Authenticatable $authenticatable
     * @param string $token
     */
    public function __construct(Authenticatable $authenticatable, string $token)
    {
        $this->authenticatable = $authenticatable;
        $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.
     *
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail()
    {
        $mail = (new MailMessage)->view('emails.kms.setPassword', [
            'customer' => $this->authenticatable,
            'token' => $this->token,
        ])->subject(__('notifications.kms_set_password.subject'));

        return $mail;
    }
}