►Laravel 10 Tutorial Playlist: • Laravel 10 Tutorial: Make Admin Panel...
In Part-9 of the Laravel 10 Tutorial, we will add Laravel validations for the admin login form.
We will follow below Laravel link for integrating Laravel validations for admin login :-
https://laravel.com/docs/10.x/validation
1) Update login function :-
Update login function located at AdminController and write the validator code for email and password as shown in the video.
Take help from https://laravel.com/docs/10.x/validat... 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 at Laravel website under "Displaying The Validation Errors" section.
https://laravel.com/docs/10.x/validat...
3) Update Header Statement :-
Now add below statement at the top of AdminController to include Validator class for Laravel validation :-
use Validator;
Check now validation is working fine in admin login form. Default error message will come for email and password but we can write custom error message 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 video.
5) Update login.blade.php
We will again update login page to show the error message if admin email or password is incorrect.
We can search on Google like "error message alert bootstrap" and copy bootstrap alert script to show error message.
We will learn more about Laravel validations in future videos when we work on other forms.
In next video, we will work on update password page for change password functionality.
Thanks for watching :)
►Laravel 9 Tutorial Playlist (Create Multi-Vendor E-commerce Website) - • Laravel Multi Vendor Tutorial
►Click here to subscribe for Laravel & other updates - / stackdevelopers
Popular Stack Developers Series that can help you:-
►React JS Tutorial for Beginners with Laravel 9 - • React JS Tutorial with Laravel for Be...
►Laravel Tutorial for Beginners - • Laravel Tutorial for Beginners | Adva...
►GIT Tutorial for Beginners - • Git Tutorial for Beginners | Create y...
►Laravel API Tutorial - • Laravel API Tutorial | Create API fro...
►Laravel Interview Questions - • Laravel Interview Questions & Answers...
►jQuery Tutorial - • jQuery Tutorial
►Laravel Basic E-commerce Series - • Make Admin Panel / E-commerce Website...
►Laravel Dating Series - • Make Dating / Social Networking Websi...
►Join this channel to get the complete source code of all series:
/ @stackdevelopers
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - / stackdevelopers2
►Join Facebook Group to resolve your queries - / stackdevelopers
►Follow on Instagram - / stackdevelopers2
►Follow on GitHub - https://github.com/stackdevelopers
#laravel10 #laravel10tutorial #laravel
Watch video Laravel 10 Tutorial #9 | Create Admin Panel in Laravel | Admin Panel Login / Logout Functionality online without registration, duration hours minute second in high quality. This video was added by user Stack Developers 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,937 once and liked it 47 people.