Laravel 6 multiple authentication guards

Опубликовано: 11 Октябрь 2024
на канале: Real programmer
20,388
221

Laravel 6 Multiple Authentication guards

How to use multiple Authentication using guards in Laravel 6.0?

How to use multiple Authentication using guards and you can follow the video tutorial for step by step and the source code will available on my blog(https://therealprogrammer.com/blog/ho...) or GIT from https://github.com/siddharth018/larav...

"Grow your business 10X with custom website/app development services. Click on the link:
https://www.a3logics.com/website-deve...

Blog: https://www.therealprogrammer.com/how...
Github: https://github.com/siddharth018/larav...
Hey everyone, Sid here back again with another video!

I train professional software engineers that companies love to hire. I cover a wide range of subjects like programming, what's latest in tech, new frameworks, open-source products etc. I keep my interest in a wide area of tech like Javascript, Python, PHP, AWS, etc.

A simple implementation of multiple authentications in Laravel 6.

To follow along, this application has been documented as an article on Siddharth Shukla blog. you can check out here.

Set up

To set up this project, first clone the repository

git clone https://github.com/siddharth018/larav... Change your working directory into the project directory

$ cd laravel_6_multi_authentication
Then install dependencies using Composer

composer install

Run the application with the following command

php artisan serve

Remember to visit http://localhost:8000/register/blogger and http://localhost:8000/register/admin to register bloggers and admins respectively.
Then visit http://localhost:8000/login/blogger and http://localhost:8000/login/admin to log in the bloggers and admins respectively.

Built With Laravel - The PHP Framework For Web Artisans.
Mysql - A relational database management system.