Added permission system

This commit is contained in:
Dan Brown
2015-08-29 15:03:42 +01:00
parent 0513239c25
commit ae95d0a239
24 changed files with 519 additions and 87 deletions

View File

@ -11,12 +11,14 @@
|
*/
Route::get('/test', function () {
return Auth::user()->can('users-edit');
});
// Authentication routes...
Route::group(['middleware' => 'auth'], function() {
Route::group(['middleware' => 'auth'], function () {
Route::group(['prefix' => 'books'], function() {
Route::group(['prefix' => 'books'], function () {
// Books
Route::get('/', 'BookController@index');