ldc-mesbr-app/app/Notifications/ResetPassword.php

52 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2019-02-26 11:32:45 +01:00
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification;
class ResetPassword extends ResetPasswordNotification
{
use Queueable;
/**
* Get the notification's delivery channels.
*
2025-04-03 09:30:16 +02:00
* @param mixed $notifiable
2019-02-26 11:32:45 +01:00
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
2025-04-03 09:30:16 +02:00
* @param mixed $notifiable
2019-02-26 11:32:45 +01:00
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
2021-04-27 17:29:47 +02:00
return (new MailMessage())
2019-02-26 11:32:45 +01:00
->subject('MesBR - Réinitialisation du mot de passe')
->line('Vous recevez cet email car nous avons reçu une requête de réinitialisation de mot de passe pour votre compte.')
2021-04-27 17:29:47 +02:00
->action('Réinitialiser votre mot de passe', url(config('app.url') . route('password.reset', $this->token, false)))
2019-02-26 11:32:45 +01:00
->line('Si vous n\'avez pas fait cette demande, aucune action de votre part est nécessaire.');
}
/**
* Get the array representation of the notification.
*
2025-04-03 09:30:16 +02:00
* @param mixed $notifiable
2019-02-26 11:32:45 +01:00
* @return array
*/
public function toArray($notifiable)
{
return [
2025-04-03 09:30:16 +02:00
];
2019-02-26 11:32:45 +01:00
}
}