У нас вы можете посмотреть бесплатно Configuring Multi Auth Middleware - Native Laravel 5.4 Multiple Authentication Series (Part 3) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
We have our logins working as intended and are able to log in and out as our different users. It finally feels like the app is coming together. We have a Users model and Admins model, tracking different types of users independently. Now we simply need to fix a few weird occurrences. The first problem we have is that if we ever try to go to our Admin center when we are not logged in, it redirects us to the Users Login Form. This is not right, we would expect the app to redirect us to the Admin Login Form so that we can log in as an Admin. We will fix this part first. This is can be handled in our exceptions handler. In the exceptions handler we will get the guard that triggered the exception and then compare it to the guards in our app. Since we only have two (non-api) guards this will be easy. Check to see if it is admin and if it isn't, then it must be the web guard. We will set our named route for each login form and then redirect to the one that gets triggered. The second problem is that when our "Guest" middleware notices a logged in user, it always redirects us to the /home location. This is ok when we are accessing a users guest path, but if we are trying to access an admin guest path, this is very unexpected. The more natural concept would be to redirect us to the admin dashboard. We can edit this functionality in the RedirectIfAuthenticated Middleware. Just like before, we use our guard and test if it is either admin or web. Then redirect to the correct url for that guard's dashboard. ------ WRITTEN TUTORIAL: (Coming Soon) =========================================== === Multiple Authentication in Laravel 5.4 Series: === =========================================== Part 1: Setting up our Models and Auth Guards • (Part 2) Logging In Multiple Users - Nativ... Part 2: Creating Login Pages and Logging in Users • (Part 2) Logging In Multiple Users - Nativ... Part 3: Modifying Middleware to Support Multiple Users • Configuring Multi Auth Middleware - Native... (This Video) Part 4: Logging Out Multiple User Types • Logging Out Users - Native Laravel 5.4 Mul... Part 5: Forgot My Password Functionality across Multiple User Types Coming Soon. ==== DOWNLOAD SOURCE CODE ==== Download from GitHub: https://github.com/DevMarketer/multia... ==== FOLLOW ME ==== Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5... Twitter - / _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 hello@jacurtis.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.