Middleware to detect is update is pending; move Routes into HTTP

This commit is contained in:
Nabeel Shahzad
2019-07-18 10:51:05 -04:00
parent c6547ac7fc
commit b2cf7acfb6
11 changed files with 98 additions and 80 deletions

View File

@@ -158,61 +158,17 @@ return [
],
/*
|--------------------------------------------------------------------------
| Laratrust Foreign Keys
|--------------------------------------------------------------------------
|
| These are the foreign keys used by laratrust in the intermediate tables.
|
*/
'foreign_keys' => [
/*
* User foreign key on Laratrust's role_user and permission_user tables.
*/
'user' => 'user_id',
/*
* Role foreign key on Laratrust's role_user and permission_role tables.
*/
'role' => 'role_id',
/*
* Role foreign key on Laratrust's permission_user and permission_role tables.
*/
'permission' => 'permission_id',
/*
* Role foreign key on Laratrust's role_user and permission_user tables.
*/
'team' => 'team_id',
],
/*
|--------------------------------------------------------------------------
| Laratrust Middleware
|--------------------------------------------------------------------------
|
| This configuration helps to customize the Laratrust middleware behavior.
|
*/
'middleware' => [
/*
* Define if the laratrust middleware are registered automatically in the service provider
*/
'register' => true,
/*
* Method to be called in the middleware return case.
* Available: abort|redirect
*/
'handling' => 'abort',
/*
* Parameter passed to the middleware_handling method
*/
'params' => '403',
'handling' => 'redirect',
'params' => '/login',
],