Answer the question
In order to leave comments, you need to log in
How to replace Laravel 8 Breeze emails?
When using Breeze, letters with mail confirmation, password recovery, etc., come with standard Laravel templates. How to make your own blade templates for all notifications and send them to users already?
p/s/ Completely your own design and your own text for each type of notification
Answer the question
In order to leave comments, you need to log in
Edit the appropriate files in the resources/views/auth
. For example: verify-email.blade.php
.
The solution has been found. I'll leave it here if anyone needs it:
1. Replacing letter templates (design)
, run two commands in the terminal
php artisan vendor:publish --tag=laravel-mail
php artisan vendor:publish --tag=laravel-notifications
php artisan make:notification MyVerifyMail
php artisan make:notification MyResetPass
return (new MailMessage)
->greeting('Здравствуйте!')
public function sendEmailVerificationNotification(){
$this->notify(new MyVerifyMail());
}
public function sendPasswordResetNotification($token)
{
$this->notify(new MyResetPass($token));
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question