Converted all notification emails to the branded layout by routing them through a shared Blade template and swapping
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.
This commit is contained in:
22
app/Notifications/VerifyEmailNotification.php
Normal file
22
app/Notifications/VerifyEmailNotification.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user