filmov
tv
Laravel 9 Tutorial #10 | Create Multi Vendor Ecom Website | Laravel 9 Validations | Admin Login Form

Показать описание
In Part-10 of the Laravel 9 Tutorial to create a Multi-Vendor E-commerce Website in Laravel, we will add Laravel validations for the admin login form.
We will follow below Laravel 9 link for integrating Laravel validations for admin login:-
1) Update login function :-
Update login function located at AdminController and write validator code for email and password as shown in the video.
3) Update Header Statement:-
Now add the below statement at the top of AdminController to include the Validator class for Laravel validation:-
use Validator;
Check now validation is working fine in the admin login form. The default error message will come for email and password but we can write custom error messages for email and password.
4) Update login function :-
For custom error messages, we will write validation logic in one array and custom error messages in another and then validate them as shown in the video.
We will learn more about Laravel validations in future videos when we work on other forms.
In the next video, we will work on the settings page to change password functionality.
Thanks for watching :)
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
#laravel9 #laravel9tutorial #laravel
Комментарии