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

preview_player
Показать описание

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
Рекомендации по теме
Комментарии
Автор

Awesome and Easy To Learn Tutorials of my Life. keep Continue Dear Gupta.
Love from Pakistan

Azizullah-cesi
Автор

Thanks for these tutorials - Love from Pakistan

techbygul
Автор

Hello sir !!
Today I reach here step by step.
Your Draw Explanation is awesome 🙏

protrickscornerofficial
Автор

Thank you this is really helpful for us

jafrulhasanrasel
Автор

You got good skills and knowledge but please use hindi or urdu so in that way you can explain better.

aqeelrasool
Автор

hello brother,
could you please explain how to apply validation from "laravel form request"
The problem is when I open the form with matchRoute the validation is applied to get the page and reload it over and over because the email and password are empty so how can i apply the form request when method is post only

haithamtokhy
Автор

Hello, how are you? Hope you are doing good.
I have been your follower since a long time, I was working on a side project to test my skills and I'm stuck at one point.

I have a table 'profiles' which has 'user_id' and another table 'friends' which has 'user_id' and 'friend_id'.
Profiles has all the users and in Friends it has the user_id and the friend_id whom the user has sent request.

Now, in view I want to display all the users from the Profiles table but not the users whom the user has already sent the request.

How should I do it?

avishek
Автор

sir validation for password add if user inter wrong password then show error your password is wrong

briwaysol
visit shbcf.ru