File: D:/HostingSpaces/SBogers10/rentman2019.komma.pro/app/Notifications/KmsResetPasswordNotification.php
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class KmsResetPasswordNotification extends Notification
{
use Queueable;
/** @var string The password reset token */
private $token;
/**
* Create a new notification instance.
*
* @param string $token The password reset token
*/
public function __construct(string $token)
{
$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)
{
return (new MailMessage)
->greeting(__('kms/passwords.greeting'))
->line(__('kms/passwords.introduction'))
->action(__('kms/passwords.clickToReset'), route('kms.password.reset', ['token' => $this->token]))
->line(__('kms/passwords.outro'));
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}