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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners