File: D:/HostingSpaces/Eurotools/euro-tools.nl/app/Notifications/SiteResetPasswordNotification.php
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class SiteResetPasswordNotification extends Notification
{
use Queueable;
/** @var string $token 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)
->subject(__('shop/notifications.reset.mail_subject'))
->greeting(__('shop/notifications.reset.mail_greeting'))
->line(__('shop/notifications.reset.mail_intro'))
->action(__('reset'), route('site.password.reset.'.\App::getLanguage()->iso_2, ['token' => $this->token]))
->line(__('shop/notifications.reset.mail_outro'));
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}