Laravel https://laravel.com/docs/9.x/validation#form-request-validation are special classes that extend the functionality of regular request classes, enabling https://laravel.com/docs/9.x/validation. Form requests also help to keep your controller actions a lot cleaner, because you can move all your validation logic to the form request class. Another benefit is that it allows you to filter requests before they reach your controller actions.

On the backend validation, you just need to use the https://laravel.com/docs/9.x/validation#rule-confirmed validation rule for your password field.

Bootstrap FrontEnd Code for Laravel Password and Confirm Password Validation
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners