Laravel 5 Simple Route Access Control

Related to my blog article here: http://josephralph.co.uk/laravel-5-simple-route-access-control/

Folders and files to note are as follows:

  • database/migrations
  • app/Http/Kernel.php
  • app/Http/Middleware/PermissionsRequiredMiddleware.php
  • app/Http/routes.php
  • app/Permission.php
  • app/User.php