Skip to content

Commit

Permalink
fix role_user_table config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuansir committed Mar 1, 2017
1 parent 7100410 commit 9ef65d8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions config/entrust.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* a role & permission management solution for Laravel.
*
* @license MIT
* @package Zizaco\Entrust
*/

return [
Expand Down Expand Up @@ -63,4 +64,29 @@
*/
'permission_role_table' => 'permission_role',

/*
|--------------------------------------------------------------------------
| Entrust role_user Table
|--------------------------------------------------------------------------
|
| This is the role_user table used by Entrust to save assigned roles to the
| database.
|
*/
'role_user_table' => 'admin_user_role',

/*
|--------------------------------------------------------------------------
| User Foreign key on Entrust's role_user Table (Pivot)
|--------------------------------------------------------------------------
*/
'user_foreign_key' => 'admin_user_id',

/*
|--------------------------------------------------------------------------
| Role Foreign key on Entrust's role_user Table (Pivot)
|--------------------------------------------------------------------------
*/
'role_foreign_key' => 'role_id',

];

0 comments on commit 9ef65d8

Please sign in to comment.