Skip to content

Commit

Permalink
Corrected config assigned roles table
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacq committed Jul 17, 2015
1 parent f56089f commit 6919d48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Entrust/Traits/EntrustRoleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down

0 comments on commit 6919d48

Please sign in to comment.