fixed resend password email issue
This commit is contained in:
parent
139be97e11
commit
41d0e4b3cc
|
|
@ -42,9 +42,10 @@ class Invitation extends Notification
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->line(trans('auth.invitation.message_1'))
|
->line(trans('auth.invitation.message_1'))
|
||||||
->action(trans('auth.invitation.button'), route('register', $this->invitation->token))
|
->action(trans('auth.invitation.button'), route('register', $this->invitation->token))
|
||||||
->line(trans('auth.invitation.message_2'));
|
->line(trans('auth.invitation.message_2'));
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,18 @@ class Reset extends Notification
|
||||||
*/
|
*/
|
||||||
public $token;
|
public $token;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The email address.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a notification instance.
|
* Create a notification instance.
|
||||||
*
|
*
|
||||||
* @param string $token
|
* @param string $token
|
||||||
|
* @param string $email
|
||||||
*/
|
*/
|
||||||
public function __construct($token, $email)
|
public function __construct($token, $email)
|
||||||
{
|
{
|
||||||
|
|
@ -42,9 +50,10 @@ class Reset extends Notification
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->line(trans('auth.notification.message_1'))
|
->line(trans('auth.notification.message_1'))
|
||||||
->action(trans('auth.notification.button'), route('reset', ['token' => $this->token, 'email' => $this->email]))
|
->action(trans('auth.notification.button'), route('reset', ['token' => $this->token, 'email' => $this->email]))
|
||||||
->line(trans('auth.notification.message_2'));
|
->line(trans('auth.notification.message_2'));
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,10 @@ class DownloadCompleted extends Notification implements ShouldQueue
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(trans('notifications.download.completed.title'))
|
->subject(trans('notifications.download.completed.title'))
|
||||||
->line(new HtmlString('<br><br>'))
|
->line(new HtmlString('<br><br>'))
|
||||||
->line(trans('notifications.download.completed.description'))
|
->line(trans('notifications.download.completed.description'))
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,10 @@ class DownloadFailed extends Notification implements ShouldQueue
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(trans('notifications.download.failed.title'))
|
->subject(trans('notifications.download.failed.title'))
|
||||||
->line(new HtmlString('<br><br>'))
|
->line(new HtmlString('<br><br>'))
|
||||||
->line(trans('notifications.download.failed.description'))
|
->line(trans('notifications.download.failed.description'))
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,10 @@ class ExportCompleted extends Notification implements ShouldQueue
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(trans('notifications.export.completed.title'))
|
->subject(trans('notifications.export.completed.title'))
|
||||||
->line(new HtmlString('<br><br>'))
|
->line(new HtmlString('<br><br>'))
|
||||||
->line(trans('notifications.export.completed.description'))
|
->line(trans('notifications.export.completed.description'))
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,10 @@ class ExportFailed extends Notification implements ShouldQueue
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(trans('notifications.export.failed.title'))
|
->subject(trans('notifications.export.failed.title'))
|
||||||
->line(new HtmlString('<br><br>'))
|
->line(new HtmlString('<br><br>'))
|
||||||
->line(trans('notifications.export.failed.description'))
|
->line(trans('notifications.export.failed.description'))
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,12 @@ class ImportCompleted extends Notification implements ShouldQueue
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
$dashboard_url = route('dashboard', ['company_id' => company_id()]);
|
$dashboard_url = route('dashboard', ['company_id' => company_id()]);
|
||||||
|
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(trans('notifications.import.completed.title'))
|
->subject(trans('notifications.import.completed.title'))
|
||||||
->line(new HtmlString('<br><br>'))
|
->line(new HtmlString('<br><br>'))
|
||||||
->line(trans('notifications.import.completed.description'))
|
->line(trans('notifications.import.completed.description'))
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,10 @@ class ImportFailed extends Notification implements ShouldQueue
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
$message = (new MailMessage)
|
$message = (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(trans('notifications.import.failed.title'))
|
->subject(trans('notifications.import.failed.title'))
|
||||||
->line(new HtmlString('<br><br>'))
|
->line(new HtmlString('<br><br>'))
|
||||||
->line(trans('notifications.import.failed.description'));
|
->line(trans('notifications.import.failed.description'));
|
||||||
|
|
|
||||||
|
|
@ -49,11 +49,12 @@ class InvalidEmail extends Notification implements ShouldQueue
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable): MailMessage
|
||||||
{
|
{
|
||||||
$dashboard_url = route('dashboard', ['company_id' => company_id()]);
|
$dashboard_url = route('dashboard', ['company_id' => company_id()]);
|
||||||
|
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
|
->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(trans('notifications.email.invalid.title', ['type' => $this->type]))
|
->subject(trans('notifications.email.invalid.title', ['type' => $this->type]))
|
||||||
->line(new HtmlString('<br><br>'))
|
->line(new HtmlString('<br><br>'))
|
||||||
->line(trans('notifications.email.invalid.description', ['email' => $this->email]))
|
->line(trans('notifications.email.invalid.description', ['email' => $this->email]))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue