Skip to content

Instantly share code, notes, and snippets.

View klapifoch's full-sized avatar

Lennin Padilla Escobar klapifoch

View GitHub Profile
@amochohan
amochohan / 01_Laravel 5 Simple ACL manager_Readme.md
Last active July 24, 2024 14:27
Laravel 5 Simple ACL - Protect routes by an account / role type

#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.

Installation

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

@ericelliott
ericelliott / essential-javascript-links.md
Last active November 8, 2024 17:29
Essential JavaScript Links
<?php
class Damage
{
protected $name;
protected $damagePoints = 10;
public function __construct($name)
{
$this->name = $name;
}
@queiroz
queiroz / Layouts.php
Created March 10, 2013 08:39
CodeIgniter alternative layouts Library
<?php
class Layouts
{
// hold codeigniter instance
private $CI;
// hold layout title
private $layout_title = null;