With Laravel 5.3, default Authentication changed a bit - specifically the way you can protect routes with the auth middleware. This video gets you back on track! Did you like it? Have a look at all the other videos on my channel :) You can follow me on Twitter (@maxedapps), Facebook (https://www.facebook.com/academindchannel/) or visit our Website (https://www.academind.com).
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 https://youtu.be/Ir2nAD9UDGg (Current Video) Part 2: Creating Login Pages and Logging in Users https://youtu.be/Ir2nAD9UDGg Part 3: Modifying Middleware to Support Multiple Users https://youtu.be/P8T3MjZPDdI Part 4: Forgot My Password Functionality across Multiple User Types Coming Soon. ==== DOWNLOAD SOURCE CODE ==== Download from GitHub: https://github.com/DevMarketer/multiauth_tutorial/releases/tag/part_1 ==== FOLLOW ME ==== Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (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. Email me email@example.com 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.
Host your Laravel application on cloudways. It is cheap and EXTREMELY fast. This is where I host http://www.devlob.com Click here https://www.cloudways.com/en/?id=44637 http://www.devlob.com
Get all my laravel course only $10 each: - "Build AJAX Web apps with Laravel, Bootstrap & jQuery" Course just $10 (above 85%off): https://www.udemy.com/learn-laravel-by-doing/?couponCode=YTB10D - "Build Amazing Blog + CMS with Laravel 5.x & AdminLTE ": https://www.udemy.com/build-blog-cms-with-laravel-5/?couponCode=YTB10D In this video I want to show you how to setup multi authentication in laravel 5.3 from scratch. This is the first episode of two video series. And in this video I cover how to install laravel authentication, create AdminUser model, create authentication routes for user admin.