Almost every web application has some need for authentication. Users of our app need the ability to login and logout. Fortunately, Laravel provides a clean, simple and unobtrusive password-based authentication class to help you validate user credentials and retrieve information about the current user of your application.
This is Multiple user authentication examples in Laravel 5.4. Using this repository easily manage multiple user login projects.
Follow Below Step for use this repository.
- Download zip or clone the repository
- Execute Following Command for install dependency : composer install (Required the composer install in your PC)
- Execute Following Command for migrate database : php artisan migrate (All Migration files are available in this repository)
- Run Seeder Files : php artisan db:seed
In this example, there are three different user role login. list out in below.
- Master Login
- Admin Login
- User Login
http://localhost/laravelMultiAuth/public/
OR
http://localhost/laravelMultiAuth/public/master
OR
http://localhost:8000/master
Username : [email protected]
Password : 2209
http://localhost/laravelMultiAuth/public/admin
OR
http://localhost/laravelMultiAuth/public/admin/login
OR
http://localhost:8000/admin
Username : [email protected]
Password : 2209
http://localhost/laravelMultiAuth/public/user
OR
http://localhost/laravelMultiAuth/public/user/login
OR
http://localhost:8000/user
Username : [email protected]
Password : 2209