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

  Рет қаралды 16,192

PHP TECH LIFE

PHP TECH LIFE

3 ай бұрын

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/phptechlife/bootst...
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 KZbin 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.

Пікірлер: 40
@asifali-fc8xt
@asifali-fc8xt 2 ай бұрын
Best lecture with good presentation
@usmraf786
@usmraf786 2 ай бұрын
Very good tutorial, Thanks very much Sir
@muhammadnaveed7953
@muhammadnaveed7953 3 ай бұрын
Thank you Sir g. You are doing a great job...
@umarfarooq-mq1to
@umarfarooq-mq1to 2 ай бұрын
Thanks sir you are doing great job
@HassanIdrees-ju2cv
@HassanIdrees-ju2cv 2 ай бұрын
Thanks very much Sir🥰🥰
@lingarajbhuvan1404
@lingarajbhuvan1404 2 ай бұрын
good job sir
@imalirazaa
@imalirazaa 3 ай бұрын
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 ❤
@Not_Casual_Not_Anymore
@Not_Casual_Not_Anymore 2 ай бұрын
Good Work Buddy , May your Hard Word pays off
@PHPTechLife
@PHPTechLife 2 ай бұрын
Thanks for your kind words.
@rupeshsharma2462
@rupeshsharma2462 3 ай бұрын
Nyce one
@technoknowledge4430
@technoknowledge4430 13 күн бұрын
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
@narend
@narend 3 ай бұрын
Please sir create video for multi auth with multi table
@celebrities5502
@celebrities5502 7 күн бұрын
laravel Breeze include this all then why we create this ?
@junaidashiq766
@junaidashiq766 2 ай бұрын
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 ?
@future_of_coding
@future_of_coding 3 ай бұрын
@PHPTechLife Hello Sir thanks for another great tutorial, Looking for spatie authentication and laravel Fortify can you make two tutorial on this topic.
@PHPTechLife
@PHPTechLife 3 ай бұрын
Yes, I can try.
@narend
@narend 3 ай бұрын
Sir customer or admin ko seprate table me add karo na
@AbdelrahmanEl.Monshed
@AbdelrahmanEl.Monshed 2 ай бұрын
hello every one can u mention Admin login controller
@junaidiqbal5991
@junaidiqbal5991 27 күн бұрын
How to do it with same with Laravel Breeze? please advice
@PHPTechLife
@PHPTechLife 27 күн бұрын
Need to create a separate video.
@abacusdotcom
@abacusdotcom 2 ай бұрын
You are the best. Even I speak English, I grabbed every detail discussed. Thanks.
@PHPTechLife
@PHPTechLife 2 ай бұрын
Thanks for your kind words.
@jprathod16a
@jprathod16a 19 күн бұрын
"I will share source code in couple of days." i do not understand for source code option i want to source code pl
@PHPTechLife
@PHPTechLife 19 күн бұрын
sorry for inconvenience will add link of source code very soon.
@GoChettries
@GoChettries 3 ай бұрын
Sir i need your 15min time to solve my issue in laravel. could you please help me out ?
@PHPTechLife
@PHPTechLife 3 ай бұрын
you can message me at insta and I will try to help you.
@abhi_84ya
@abhi_84ya Ай бұрын
make a project laravel with jquery ajax
@PHPTechLife
@PHPTechLife Ай бұрын
There is already a complete playlist on Laravel where I used ajax. kzbin.info/www/bejne/eWTbf32Mqd2Ne9U
@pramodgautam45
@pramodgautam45 2 ай бұрын
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
@PHPTechLife
@PHPTechLife 2 ай бұрын
on account/login, admin can login as a customer
@shabnam9519
@shabnam9519 Ай бұрын
​@@PHPTechLife hey how we can stop admin to login as users? Please tell
@Abdullah2588
@Abdullah2588 Ай бұрын
where is source code
@viralvadera3323
@viralvadera3323 Ай бұрын
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'); } }
@PHPTechLife
@PHPTechLife Ай бұрын
Yes, you can follow this.
@abhinav3368
@abhinav3368 11 күн бұрын
Try This: if(Auth::attempt(['email' => $request->get('email'), 'password' => $request->get('password')])) { // } { // }
@tirtho.b
@tirtho.b 18 күн бұрын
This page isn’t working127.0.0.1 redirected you too many times. Try deleting your cookies. ERR_TOO_MANY_REDIRECTS after 46:15
@narend
@narend 3 ай бұрын
Sir customer or Admin kabhi same table me nahi hote
@PHPTechLife
@PHPTechLife 3 ай бұрын
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.
@viralvadera3323
@viralvadera3323 Ай бұрын
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.
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 19 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,7 МЛН
Learning Rust! | Writing a 16bit Virtual Machine
1:37:34
Tom Marks Talks Code LIVE
Рет қаралды 5 М.
Building the Formula 1 App with React Native
3:58:45
notJust․dev
Рет қаралды 236 М.
Laravel Tutorial For Beginners (Simple User CRUD App)
1:16:13
LearnWebCode
Рет қаралды 168 М.
Laravel Interfaces: The Key to Clean and Maintainable Code [HINDI]
24:28
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 19 МЛН