Skip to content

Instantly share code, notes, and snippets.


Raj raj-uimatic

View GitHub Profile
raj-uimatic / git_parse.php
Created Nov 8, 2017
git head data for php site
View git_parse.php
$head = exec("git log -1 --pretty=format:'%h - (%ci)' --abbrev-commit");
$msg = exec("git log -1 --pretty=format:'%s ' --abbrev-commit");
echo "$head - $msg";
raj-uimatic / 01_Laravel 5 Simple ACL
Last active Aug 29, 2015 — forked from amochohan/01_Laravel 5 Simple ACL
Laravel 5 Simple ACL - Protect routes by an account / role type
View 01_Laravel 5 Simple ACL

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.


Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php