Skip to content

Commit

Permalink
Issue #42 installing Entrust
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Sep 17, 2016
1 parent 69d5da0 commit 467e7ac
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@ class Kernel extends HttpKernel
'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,

'role' => \Zizaco\Entrust\Middleware\EntrustRole::class,
'permission' => \Zizaco\Entrust\Middleware\EntrustPermission::class,
'ability' => \Zizaco\Entrust\Middleware\EntrustAbility::class,
];
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"erusev/parsedown": "^1.6",
"clue/graph": "^0.9.0",
"graphp/algorithms": "^0.8.1",
"satooshi/php-coveralls": "~1.0.1@stable"
"satooshi/php-coveralls": "~1.0.1@stable",
"zizaco/entrust": "5.2.x-dev"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
Expand Down
75 changes: 72 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
*/
Dingo\Api\Provider\LaravelServiceProvider::class,

/*
* Security, permissions, roles...
*/
Zizaco\Entrust\EntrustServiceProvider::class,

/*
* Application Service Providers...
*/
Expand Down Expand Up @@ -230,6 +235,7 @@
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,

'Entrust' => Zizaco\Entrust\EntrustFacade::class,
],

];

0 comments on commit 467e7ac

Please sign in to comment.