mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 05:15:35 +07:00
29 lines
796 B
PHP
29 lines
796 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Auth\Notifications\VerifyEmail;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Support\Facades\Lang;
|
|
|
|
class VerifyEmailNotification extends VerifyEmail
|
|
{
|
|
/**
|
|
* Build the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
|
*/
|
|
public function toMail($notifiable)
|
|
{
|
|
$verificationUrl = $this->verificationUrl($notifiable);
|
|
|
|
return (new MailMessage)
|
|
->subject(Lang::get('Verify Email Address'))
|
|
->view('emails.verify-email', [
|
|
'name' => $notifiable->first_name . ' ' . $notifiable->last_name,
|
|
'url' => $verificationUrl,
|
|
]);
|
|
}
|
|
}
|