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/Neopoints/momsecurity.be/app/Notifications/CustomerRegisteredSetPassword.php
<?php

namespace App\Notifications;

use App\Komma\Users\Models\User;
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 CustomerRegisteredSetPassword extends Notification
{
    use Queueable;

    /** @var User $customer */
    private $customer;

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

    /**
     * Create a new notification instance.
     *
     * @param User $customer
     * @param string $token
     */
    public function __construct(User $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.
     *
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail()
    {

        $mail = (new MailMessage)->view('emails.customer.setPassword', [
            'customer' => $this->customer,
            'token' => $this->token,
        ])->subject(__('notifications.customer_set_password.subject'));

        return $mail;
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable)
    {
        return [
            //
        ];
    }
}