Skip to content

Instantly share code, notes, and snippets.

View Adagal's full-sized avatar

Javier Torrón Díaz Adagal

View GitHub Profile
@Adagal
Adagal / CheckRole.php
Last active September 11, 2017 17:03 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple API authorization - Protect routes by an account / role type
<?php namespace App\Http\Middleware;
// First copy this file into your middleware directoy
use Closure;
class CheckRole{
/**
* Handle an incoming request.