filmov
tv
Create Multi Auth using Guards in Laravel Application
Показать описание
How to create #Laravel multiple authentications for multi-role users? This is one of the most requested topics on this channel. In this tutorial, you will learn step by step to create multi auth system with ease using Laravel guards. We will build a multiple guards authentication allowing users and admins to login separately.
Repository:
Blog Post: Implementing Multi-Authentication with Guards in Laravel
▶ 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
01:31 Create Fresh Laravel App
01:59 Install Laravel Themer Package
02:57 Create Frontend theme
05:53 Create Admin theme
07:15 Create Routes from admin theme
08:16 Login Route
10:13 Create `Admin` model & `admins` table
12:10 login route & AuthController for user authentication
14:01 Create `admin` guard
16:30 login admin user
18:31 create admin home route
19:54 logout
21:12 fix redirect issues
22:25 modify `auth` middleware, On visit `/admin/home` redirect to `/admin/login`, if admin user not logged in.
24:11 create `admin` helper function
26:08 modify `guest` middleware, On visit `/admin/login` redirect to `/admin/home` if admin user logged in.
28:21 Review working on `multi guard authentication`
Support my work:
𝐃𝐢𝐠𝐢𝐭𝐚𝐥𝐎𝐜𝐞𝐚𝐧 𝐑𝐞𝐟𝐞𝐫𝐫𝐚𝐥
Also, follow us on:
Repository:
Blog Post: Implementing Multi-Authentication with Guards in Laravel
▶ 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
01:31 Create Fresh Laravel App
01:59 Install Laravel Themer Package
02:57 Create Frontend theme
05:53 Create Admin theme
07:15 Create Routes from admin theme
08:16 Login Route
10:13 Create `Admin` model & `admins` table
12:10 login route & AuthController for user authentication
14:01 Create `admin` guard
16:30 login admin user
18:31 create admin home route
19:54 logout
21:12 fix redirect issues
22:25 modify `auth` middleware, On visit `/admin/home` redirect to `/admin/login`, if admin user not logged in.
24:11 create `admin` helper function
26:08 modify `guest` middleware, On visit `/admin/login` redirect to `/admin/home` if admin user logged in.
28:21 Review working on `multi guard authentication`
Support my work:
𝐃𝐢𝐠𝐢𝐭𝐚𝐥𝐎𝐜𝐞𝐚𝐧 𝐑𝐞𝐟𝐞𝐫𝐫𝐚𝐥
Also, follow us on:
Комментарии