Laravel 11 Multiple Authentication | User & Admin | Multi Guard Authentication | PHP Tech Life Hindi
ฝัง
- เผยแพร่เมื่อ 19 ก.ย. 2024
- In this video tutorial, we'll be building a multiple authentication system using Laravel 11. We'll set up separate guards, providers, and middlewares specifically tailored for admin authentication.
With this multi-auth system, both users and admins will have their own dedicated dashboards. We'll also go through the registration process for users, while for admins, we'll focus solely on the login area. Throughout the tutorial, you'll learn how to create middleware and how to effectively use them. We'll cover concepts like guest middleware and authenticated middleware, giving you a comprehensive understanding of Laravel's authentication mechanisms.
Please subscribe to my channel and hit the notification bell, so you don’t miss any of my new videos.
➡️ bit.ly/PHPTechLife
Github Link:
github.com/php...
Source Code:
I will share source code in couple of days.
👇 Let’s connect online:
📱 Instagram: / mohitsingh_techie
🐦 Twitter: / phptechlife
👨🏻💻 LinkedIn: / mohitsingh2006
😄 Facebook: / phptec
🏷️ Tags:
#laravel11 #laravel_multi_auth
---------------------------------
About Me:
I’m Mohit Singh, a senior full-stack web developer with more than a decade of experience. Throughout my career, I’ve developed a broad range of web applications, from simple websites to complex systems. I’m proficient in multiple programming languages and frameworks, and I’m always eager to learn new technologies to enhance my skills.
As the founder and owner of the PHP Tech Life TH-cam channel, my passion for teaching is at the forefront of everything I do. I created this channel with the goal of helping aspiring web developers learn in Hindi, making web development accessible and enjoyable for everyone.
Best lecture with good presentation
Good Work Buddy , May your Hard Word pays off
Thanks for your kind words.
You are the best. Even I speak English, I grabbed every detail discussed. Thanks.
Thanks for your kind words.
Very good tutorial, Thanks very much Sir
Sir u r doing such a great Job Thank u so much for these amazing tutorials.. Plz make a tutoril series on Point Of sale and inventory management system in laravel 11 Thank u... Love From Pakistan ❤
Thanks sir you are doing great job
Thank you sir🎉🎉
Thanks very much Sir🥰🥰
Thank you Sir g. You are doing a great job...
Keep growing!
Can we have role drop-down in register page and according when individuals goes to login and it redirect to the dash board page of selected role according selected while registering...if so...how can it be done
good job sir
sir is me ek masla hai me admin ke liye alag login page q banao muje ager user me hi login karna ho admin ko to kase karo job me login karo tu wo user ke dashboard me chala jye or jb me admin ka login password dalo tu wo admin ke dashboard me chala chiye ye kase hoga
Sir i need Urgent reply , agar mujhy ye kam Gate ke through krna ha to wo kesey karunga kiya tab mujhy guard ki zarort nhi parni ?
Please sir create video for multi auth with multi table
@PHPTechLife Hello Sir thanks for another great tutorial, Looking for spatie authentication and laravel Fortify can you make two tutorial on this topic.
Yes, I can try.
laravel Breeze include this all then why we create this ?
Sir customer or admin ko seprate table me add karo na
How to do it with same with Laravel Breeze? please advice
Need to create a separate video.
Sir agar hame admin ka id and password change karna hoto kya kare please batao muje
Nyce one
Auth guard [admin] is not defined. showing this errer
hello every one can u mention Admin login controller
Sir source code kabh karoge update
Hello sir.
Jab account/login pe admin ko login kra rahe hai to login ho rha hai but admin dashboard pe nahi ja rha page account.dashboard pe hit ho rha hai. Jabki main admin ko admin/login kra hun to admin dashboard open ho rha. Jo ki theek hai but.. Ye possible hai kya sir ya fir bugs error hai pl tell me asap
on account/login, admin can login as a customer
@@PHPTechLife hey how we can stop admin to login as users? Please tell
"I will share source code in couple of days." i do not understand for source code option i want to source code pl
sorry for inconvenience will add link of source code very soon.
i need sourcecode
Admin ka id and password kaise change kare
Sir i need your 15min time to solve my issue in laravel. could you please help me out ?
you can message me at insta and I will try to help you.
For two login can't i just:
if(Auth::attempt(['email' => $request->email,'password' => $request->password])){
$user = Auth::user();
if ($user->role == 'admin') {
return redirect()->route('admin.dashboard');
} elseif ($user->role == 'user') {
return redirect()->route('account.dashboard');
}
}
Yes, you can follow this.
Try This:
if(Auth::attempt(['email' => $request->get('email'), 'password' => $request->get('password')]))
{
//
}
{
//
}
This page isn’t working127.0.0.1 redirected you too many times.
Try deleting your cookies.
ERR_TOO_MANY_REDIRECTS
after 46:15
hi . please sir share source code. thanks
make a project laravel with jquery ajax
There is already a complete playlist on Laravel where I used ajax.
th-cam.com/video/C3xNJVtxZEs/w-d-xo.html
source code?
where is source code
Sir customer or Admin kabhi same table me nahi hote
For different table you can define a different model in providers, please watch the video first. You also can find a video on my channel where I used different table for multi auth.
If you are collecting the same data from both types of users, it is better to have an extra column rather than an entire table.