Skip to content

Instantly share code, notes, and snippets.

@winwu
winwu / 01_Laravel 5 Simple ACL manager_Readme.md
Last active August 29, 2015 14:26 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
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

@winwu
winwu / web_development_with_laravel_5.md
Last active August 29, 2015 14:26 — forked from jaceju/web_development_with_laravel_5.md
Laravel 5 測試起手式

Web Development with Laravel 5

目標

如何在開發的過程中加入測試。

  1. Model
  2. Repository
  3. Controller
  4. Auth