From 6919d4849d62eebb8c8b822676963b619bb8b3ed Mon Sep 17 00:00:00 2001 From: Jacq Date: Fri, 17 Jul 2015 10:31:02 +0200 Subject: [PATCH] Corrected config assigned roles table --- src/Entrust/Traits/EntrustRoleTrait.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Entrust/Traits/EntrustRoleTrait.php b/src/Entrust/Traits/EntrustRoleTrait.php index da01fe9f..b57dafb9 100644 --- a/src/Entrust/Traits/EntrustRoleTrait.php +++ b/src/Entrust/Traits/EntrustRoleTrait.php @@ -18,8 +18,9 @@ trait EntrustRoleTrait * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function users() - { - return $this->belongsToMany(Config::get('auth.model'), Config::get('entrust::assigned_roles_table'),'role_id','user_id'); + { + return $this->belongsToMany(Config::get('auth.model'), Config::get('entrust.role_user_table'),'role_id','user_id'); + // return $this->belongsToMany(Config::get('auth.model'), Config::get('entrust.role_user_table')); } /**