Laravel 9 Tutorial Complete Playlist:- https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ
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:-
https://laravel.com/docs/9.x/validation
1) Update login function :-
Update login function located at AdminController and write validator code for email and password as shown in the video.
Take help from https://laravel.com/docs/9.x/validation#quick-writing-the-validation-logic for writing validation logic.
2) Update login.blade.php file:-
Now update the login.blade.php file to display the error if validation fails for email and password. You can check this on the Laravel website under the "Displaying The Validation Errors" section.
https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors
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 :)
►Laravel 9 Tutorial (Create Multi-Vendor E-commerce Website) - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ
►Get Ready for Laravel 9 - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYVb9lco6OnloSFyBLZU3tz
►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers
Popular Stack Developers Series that can help you:-
►Laravel Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZaHaFmydqjcQ-YyeQ19Cd6u
►GIT Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZVQ-dLOMFWvmCCduzJ8c6R
►Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P
►Laravel Interview Questions - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbzB_1Jdp_yFcORwOfWP8RU
►jQuery Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbMYoUA46GIonOH29KcjtxA
►Laravel Basic E-commerce Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZY5drPxIWzpq5crhantlzp7
►Laravel Dating Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZrPUnxjlomErJfNvkyS6Hf
►Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
►Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
►Follow on Instagram - https://www.instagram.com/stackdevelopers2/
►Follow on GitHub - https://github.com/stackdevelopers
#laravel9 #laravel9tutorial #laravel