Http\Mail\ForgetMail.php : corrected public var $token and added user name var, both to be used inside email content
App\Exceptions\Handler.php : added validation error handling to send response containing the message of the error
resources/views/mail/forget.blade.php :(1) replaced text 'company name' by 'IT Academy Landing', (2) Added user name after 'Hello', (3) Changed Reset Button alignment from left to center, (4) corrected reset password link to call the right method
Renamed file names to make them more understandable:
forget.badae.php -> forgetPassword.blade.php
forgetMail.php -> forgetPasswordMail.php
Http\Requests\ResetRequest.php: updated password rules to match those in store process (register) of UserController.php
Changes:
app.php
: delete duplicate routes for 'forget password' feature.ForgetController.php
: deleted since its only method 'forgetPassword' is duplicated inUserController.php
.UserController.php
: UpdatedforgetPassword
methodHttp\Mail\ForgetMail.php
: corrected public var $token and added user name var, both to be used inside email contentApp\Exceptions\Handler.php
: added validation error handling to send response containing the message of the errorresources/views/mail/forget.blade.php
:(1) replaced text 'company name' by 'IT Academy Landing', (2) Added user name after 'Hello', (3) Changed Reset Button alignment from left to center, (4) corrected reset password link to call the right methodRenamed file names to make them more understandable:
forget.badae.php
-> forgetPassword.blade.phpforgetMail.php
-> forgetPasswordMail.phpHttp\Requests\ResetRequest.php
: updated password rules to match those in store process (register) of UserController.phpScreenshot: