filmov
tv
Create Multi Auth using Guards in Laravel Fortify
![preview_player](https://i.ytimg.com/vi/x8PfZqMXn5U/maxresdefault.jpg)
Показать описание
Creating multiple guard authentication in #Laravel #Fortify is one of the most requested topics on this channel. In this video, you will learn step by step how to create multi-auth system in #Laravel #Fortify using guards. We will be building a multiple guards authentication that allows users and admins to login separately.
▶ Before continuing I recommend watching the previous tutorial on creating Multi guard authentication without Fortify package:
▶ Repository:
▶ Laravel Themer: Add multi-theme support for Laravel application
▶ Laravel Fortify Tutorial
▶ How to add a custom route file in Laravel?
▶ Laravel Backup Tutorial
▶ Laravel Passport Tutorials
▶ Laravel Sanctum
▶ Laravel Excel Tutorial: Excel exports and imports in Laravel
▶ Laravel Eloquent Relationships
⌚ Timestamps:
00:00 Introduction
00:53 Create Fresh Laravel App
01:25 Install Laravel Themer Package
02:39 Install Laravel Fortify Package
03:01 Create Frontend theme
05:10 Register & Login feature
07:37 Create Admin theme
08:23 Routes for admin theme
10:08 Create `admin` guard
10:52 Create `Admin` model & `admins` table
12:39 Login feature for admin using Fortify package controllers
14:41 Fortify's `StatefulGuard` class
17:38 create admin home route
18:18 logout feature
19:04 fix redirect issues, on login from `admin/login` page it should redirect to `/admin/home`
22:46 modify `guest` middleware, On visit `/admin/login` redirect to `/admin/home` if admin user logged in.
24:21 modify `auth` middleware, On visit `/admin/home` redirect to `/admin/login`, if admin user not logged in.
25:09 Review working on `multi guard authentication`
Support my work:
𝐃𝐢𝐠𝐢𝐭𝐚𝐥𝐎𝐜𝐞𝐚𝐧 𝐑𝐞𝐟𝐞𝐫𝐫𝐚𝐥
Also, follow us on:
▶ Before continuing I recommend watching the previous tutorial on creating Multi guard authentication without Fortify package:
▶ Repository:
▶ Laravel Themer: Add multi-theme support for Laravel application
▶ Laravel Fortify Tutorial
▶ How to add a custom route file in Laravel?
▶ Laravel Backup Tutorial
▶ Laravel Passport Tutorials
▶ Laravel Sanctum
▶ Laravel Excel Tutorial: Excel exports and imports in Laravel
▶ Laravel Eloquent Relationships
⌚ Timestamps:
00:00 Introduction
00:53 Create Fresh Laravel App
01:25 Install Laravel Themer Package
02:39 Install Laravel Fortify Package
03:01 Create Frontend theme
05:10 Register & Login feature
07:37 Create Admin theme
08:23 Routes for admin theme
10:08 Create `admin` guard
10:52 Create `Admin` model & `admins` table
12:39 Login feature for admin using Fortify package controllers
14:41 Fortify's `StatefulGuard` class
17:38 create admin home route
18:18 logout feature
19:04 fix redirect issues, on login from `admin/login` page it should redirect to `/admin/home`
22:46 modify `guest` middleware, On visit `/admin/login` redirect to `/admin/home` if admin user logged in.
24:21 modify `auth` middleware, On visit `/admin/home` redirect to `/admin/login`, if admin user not logged in.
25:09 Review working on `multi guard authentication`
Support my work:
𝐃𝐢𝐠𝐢𝐭𝐚𝐥𝐎𝐜𝐞𝐚𝐧 𝐑𝐞𝐟𝐞𝐫𝐫𝐚𝐥
Also, follow us on:
Комментарии