filmov
tv
Laravel PostgreSQL Tutorial #3 | Validate User with PostgreSQL | Laravel PostgreSQL Validation

Показать описание
Steps to validate the user with Laravel & PostgreSql:
1) Create Request:
We will create a request to validate user data with the below artisan command:
php artisan make:request UserStore
Return true in the authorize function and add validation rules in the rules function.
3) Update UserController
Add a UserStore request at the top of UserController and update the store function.
Now update the create user form with the error message div with all fields that will show the error in case any rule fails.
Popular Stack Developers Series that can help you:-
►Join this channel to get the complete source code of all series:
Follow Stack Developers on Social Media to get updates and resolve your queries
#laravel11 #postgresql #laravelcrud