Skip to content

avinashn/middleware-laravel-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 migrate to 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

About

How to use Middleware in laravel for content restriction based on user role.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published