Laravel 11 Multiple Authentication | User & Admin | Multi Guard Authentication | PHP Tech Life Hindi

preview_player
Показать описание
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.

Github Link:

Source Code:
I will share source code in couple of days.

👇 Let’s connect online:

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

Fantastic tutorial on Laravel 11 multiple authentication! The way you explained user and admin multi-guard authentication is really clear. I'm also creating a series on this topic. Keep it up!

chandanv-
Автор

Very good tutorial, Thanks very much Sir

usmraf
Автор

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 ❤

imalirazaa
Автор

You are the best. Even I speak English, I grabbed every detail discussed. Thanks.

abacusdotcom
Автор

Good Work Buddy, May your Hard Word pays off

Not_Casual_Not_Anymore
Автор

Thank you Sir g. You are doing a great job...

muhammadnaveed
Автор

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

amitupadhyay
Автор

@PHPTechLife Hello Sir thanks for another great tutorial, Looking for spatie authentication and laravel Fortify can you make two tutorial on this topic.

future_of_coding
Автор

Please sir create video for multi auth with multi table

narend
Автор

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 ?

junaidashiq
Автор

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

technoknowledge
Автор

laravel Breeze include this all then why we create this ?

bushra_ways
Автор

How to do it with same with Laravel Breeze? please advice

junaidiqbal
Автор

Auth guard [admin] is not defined. showing this errer

codeaddictionu
Автор

Sir agar hame admin ka id and password change karna hoto kya kare please batao muje

shyamradadiya
Автор

Sir customer or admin ko seprate table me add karo na

narend
Автор

hello every one can u mention Admin login controller

AbdelrahmanEl.Monshed
Автор

"I will share source code in couple of days." i do not understand for source code option i want to source code pl

jprathoda
Автор

For two login can't i just:
if(Auth::attempt(['email' => $request->email, 'password' => $request->password])){
$user = Auth::user();
if ($user->role == 'admin') {
return
} elseif ($user->role == 'user') {
return
}
}

viralvadera
Автор

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

pramodgautam