https://github.com/avinashn/middleware-laravel-example
How to use Middleware in laravel for content restriction based on user role.
https://github.com/avinashn/middleware-laravel-example
laravel laravel55 middleware php7
Last synced: 8 months ago
JSON representation
How to use Middleware in laravel for content restriction based on user role.
- Host: GitHub
- URL: https://github.com/avinashn/middleware-laravel-example
- Owner: avinashn
- Created: 2017-10-19T11:43:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T06:02:38.000Z (almost 8 years ago)
- Last Synced: 2025-02-01T04:41:18.615Z (over 1 year ago)
- Topics: laravel, laravel55, middleware, php7
- Language: PHP
- Homepage: http://justlaravel.com/middleware-laravel-content-restriction-user-role/
- Size: 222 KB
- Stars: 13
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Prerequisites
- After cloning this repository, go to the root folder, run the following command/s,
composer install
composer update - Rename .env.example to .env and provide your database details there.
- It needs a database table to store registered users. Run
php artisan migrateto import the tables. - Run
php artisan key:generate
## Reference Post
https://justlaravel.com/middleware-laravel-content-restriction-user-role/
## Demo and Code Explanation Video
https://www.youtube.com/watch?v=DkMmy-KRRTE&list=PLJKqSeQP_mlKUcBB8IC1LSWcIUYGldNuE
## Working Demo
http://demos.justlaravel.com/middleware-laravel-content-restriction-user-role