https://github.com/faizansadiq127/laravel6-multi-auth
Laravel6 Multi authentication (setting up multiple Roles and Premissions in laravel using Middleware)
https://github.com/faizansadiq127/laravel6-multi-auth
laravel laravel-authentication laravel6 laravel6-multi midleware multi-auth multi-authentication php
Last synced: about 1 month ago
JSON representation
Laravel6 Multi authentication (setting up multiple Roles and Premissions in laravel using Middleware)
- Host: GitHub
- URL: https://github.com/faizansadiq127/laravel6-multi-auth
- Owner: faizansadiq127
- Created: 2020-01-24T16:39:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T10:21:26.000Z (over 2 years ago)
- Last Synced: 2025-04-04T17:13:42.062Z (about 1 month ago)
- Topics: laravel, laravel-authentication, laravel6, laravel6-multi, midleware, multi-auth, multi-authentication, php
- Language: PHP
- Homepage:
- Size: 532 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About Laravel
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects.
### 1) Clone this repo locally
### 2) cd into your Project
### 4) Install Composer Dependencie
### composer install
### 5) Install NPM Dependencies
npm installor if you prefer yarn (as i do)
yarn### 6) Create a copy of your .env file
cp .env.example .env
### 7) Generate an app encryption key
php artisan key:generate
### 8) Create an empty database for our application
Create an empty database for your project using the database tools you Prefer
### 9) In the .env file, add database information to allow Laravel to connect to the database
In the .env file fill in the DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORD options to match the credentials of the database you just created. This will allow us to run migrations in the next step.
### 10. Migrate the database
php artisan migrate
### 11) Now run Command to run Application
php artisan serve
### Register your self as a user and test URL below
http://localhost:8000/admin
you will redirect to user dashboard
#### Now register your self as Admin and test URL below
http://localhost:8000/admin
you will see admin