the MailMessage builders to use view(). This keeps the existing copy/labels but aligns the look with resources/views/ emails/partials/layout.blade.php. I also switched the customer add‑on receipt notification to reuse the existing branded view and added missing translations for the upload pipeline alert.
23 lines
641 B
PHP
23 lines
641 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Auth\Notifications\VerifyEmail;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class VerifyEmailNotification extends VerifyEmail
|
|
{
|
|
public function toMail($notifiable): MailMessage
|
|
{
|
|
$verificationUrl = $this->verificationUrl($notifiable);
|
|
|
|
return (new MailMessage)
|
|
->subject(__('emails.verification.subject'))
|
|
->view('emails.verify-email', [
|
|
'user' => $notifiable,
|
|
'verificationUrl' => $verificationUrl,
|
|
'expiresIn' => (int) config('auth.verification.expire', 60),
|
|
]);
|
|
}
|
|
}
|