A simple way to allow access to routes based on user permissions.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
public
.gitattributes
.gitignore
CONTRIBUTING.md
artisan
composer.json
phpunit.xml
readme.md
server.php

readme.md

Laravel Permissions

Check out the article on my blog: Here

Files to Note

The files to note in this setup are:

  • app/routes.php
  • app/filters.php
  • app/models/User.php
  • app/models/Permission.php
  • Migrations in app/migrations

Get it Working

To get this example working, just clone the repo into a folder you can access on your server/localhost and run composer install.

Once done, run php artisan migrate to create the sqlite database structure.

You will then need to create the permissions and users your self. (See blog article for example.)