Skip to content

Laravel grant access to pages based on roles(one or more roles) assigned in users table as an array using middleware.

Notifications You must be signed in to change notification settings

mdutt247/laravel-multi-role-access

Repository files navigation

Laravel app for multi role page access using middleware

  1. git clone https://github.com/mdutt247/laravel-multi-role-access.git
  2. cd laravel-multi-role-access
  3. composer install
  4. Rename or copy .env.example file to .env
  5. php artisan key:generate
  6. Set your database credentials in .env file
  7. php artisan migrate:fresh --seed
  8. npm install
  9. npm run dev
  10. php artisan serve
  11. Visit localhost:8000/login in your browser
  12. User id for admin role: admin@gmail.com and password: password
  13. User id for author role: author@gmail.com and password: password

Twitter: kotagin E-mail: m.dutt@mditech.net Website: mditech.net

About

Laravel grant access to pages based on roles(one or more roles) assigned in users table as an array using middleware.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published