Multiple Authentication in Laravel 5.4 Natively! (Admins + Users) - Part 1

preview_player
Показать описание
In Laravel 5.4 we actually can natively support multiple User models (Sometimes called MultiAuth). This means we can have different users and manage these users independently, all using the Native Auth Facades, without any packages or plugins. An example of this would be Employees that manage a backend interface and then customers which have the ability to log in and manage accounts, but through the front end of the website. We want to use different tables to manage these types of users, and have different middleware and guards in place as well. This tutorial will show multiple authentication to you.

This isn't documented very well in the Laravel documentation, so it is frustrating to find the correct way to do this. But I am happy that I have now put this tutorial series together to explain how to make this happen. It is a powerful feature that Laravel has and I'm excited to show everyone how to use it.

Do not get confused between user roles and user models. This tutorial teaches you to use two different user models, (in other words two sepeare tables for different types of users). You can always add user roles to this on top, but that is not the goal of the video.

------ WRITTEN TUTORIAL: (Coming Soon)

===========================================
=== Multiple Authentication in Laravel 5.4 Series: ===
===========================================
Part 1: Setting up our Models and Auth Guards

Part 2: Creating Login Pages and Logging in Users

Part 3: Modifying Middleware to Support Multiple Users

Part 4: Forgot My Password Functionality across Multiple User Types
Coming Soon.

==== DOWNLOAD SOURCE CODE ====

Download from GitHub:

==== FOLLOW ME ====

Subscribe to DevMarketer Insider

(ask me questions!)

==== QUESTIONS? ====

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Thanks for all your support!

_________
Laravel 5.4 Authentication Multiple User Models One Application. Best tutorial authentication laravel help. Laravel 5.3 Muliple Authentication. No Packages. Laravel Php code tutorial video post example. Store user admins. Multiauth tutorial.
Рекомендации по теме
Комментарии
Автор

Dude, even my dog ​​understood your video! Thank you for your teaching.

AvellarRecords
Автор

I signed in to thank you specifically. You are the part that makes me graduate.I wish you success in everything.Thank You, so luck

WoraprushPokhaw
Автор

This is probably the most comprehensive playlist on multiple user authentication in Laravel using the best practices in web development! Thank you for making it happen!

CreepToeJoe
Автор

I'm willing to bet that you have the best tutorials on platform really, not just YouTube. Your in-depth approach has helped me understand so much, Thank you man, you're a Super Hero

techjots
Автор

After having a hard time trying to find a good tutorial about multi-auth on Laravel, I finally came upon your videos, and it was exactly what I was looking for. Outstanding tutorial, and great explanations!! Thank you so much! Best regards from Brazil!

lucasarbex
Автор

I really like that you are doing more advanced tutorials!
your tutorials are so good! :)

florianwiech
Автор

OMFG finally a good tutorial and with the latest version, i've been going crazy trying to figure it out how the guards and middleware should be linked properly. Subbed, liked and all that good stuff, keep it up man thx a lot.

axomme
Автор

Alex, I've been looking for this tutorial for a long time. you're the best. Thank you for the teaching you give me, regards.

juanalbertovallecardenas
Автор

You are the best my man! Your videos they will be 5-10 min but you explain everything like a teacher and I learded lots of think from you.
Best regards from Turkey 👍

Автор

Your tutorials are amazing. I have followed you using laravel version 7.0.8 and Multiple Authentication have worked perfectly.

CloudTechExpert
Автор

The only available and best tutorial, which explained Multi Auth in details. Really impressed by your work. Thums Up:

MrAKGarg
Автор

Thank you very much for the way you teach us. I do not know if you're a teacher at
"real life", but of course you have the capabilities to be without doubt...Congrats from Spain!

mcfly
Автор

You're the best, you're tutorials are saving my life :D i really do enjoy, great explanations keep on ^^

oussamaseifeddinedjilah
Автор

Wooow man I have watched a lot of tutorials on multi auth but this is by far the best of all. it works like magic.

elvisadjei
Автор

this is one of the greatest tutorials i've ever seen ! thank you elon ! keep going

youssefouahib
Автор

Dude you are awesome, just when I was giving up on learning Laravel I found your channel! Thanks.

Villafana
Автор

Give this guy a medal, what an explanation!!! Laravel docs just make me wanna puke but this is so simple God Bless You buddy don't ever let anything stop you.

syedusamakazmi
Автор

Was watching for exactly this tutorial... very well explained and very informative... thanks a lot man

umairgul
Автор

Do You know that you are the first guy who explain this perfectly ? Amazing job man!

SebastianPerezG
Автор

this is the best ACL video with laravel on youtube! thanks man!!

fahimbakhtiar