Laravel Modify content of password reset email in Laravel Jetstream

Laravel Jetstream is an application starter kit beautifully designed using Tailwind CSS. It uses Fortify for authenticating users and has built-in features for user account registration, email verification, password resets etc.

Ish Sookun

1 min read min read

During my recent experiments with Laravel Jetstream tried to change the content of the emails for the "email verification" and "password reset".

The below commands will generate some files which can be used to edit part of the email content.

php artisan vendor:publish --tag=laravel-notifications
php artisan vendor:publish --tag=laravel-mail

However, the reset of the layout for the emails are found in these two files:

vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php

vendor/laravel/framework/src/Illuminate/Auth/Notifications/VerifyEmail.php

The above files being in the vendor directory are not tracked by git and they will be most likely overwritten when composer updates the packages. However, until I have found a better way to customise these emails, these files are what should be updated.