How to use multiple authentication guards in Laravel 8 app

https://www.youtube.com/watch?v=-b3j0nOuF44&feature=emb_title

Prerequisites

PHP >= 7.3
BCMath PHP Extension
Ctype PHP Extension
Fileinfo PHP extension
JSON PHP Extension
Mbstring PHP Extension
OpenSSL PHP Extension
PDO PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Getting started

Check all Prerequisites are installed in your machine. then this tutorial is already looking for you, we will create 2 user class – admin, blogger and we will make guards for 2 classes and restriction different parts of the application based on those guards.

Create the application
We need to run command to create Laravel 8 projects.

composer create-project --prefer-dist laravel/laravel laravel_multi
After creating the app, now comes on the folder.

cd laravel_multi
Now configure database in .env file

Read More: https://realprogrammer.in/how-to-use-multiple-authentication-guards-in-laravel-8-app/

#laravel #laravel8

How to use multiple authentication guards in Laravel 8 app
2.40 GEEK