diff --git a/composer.lock b/composer.lock index b9f7fd9a..bac59410 100644 --- a/composer.lock +++ b/composer.lock @@ -2139,3 +2139,4 @@ }, "platform-dev": [] } + diff --git a/src/Entrust/Traits/EntrustRoleTrait.php b/src/Entrust/Traits/EntrustRoleTrait.php index 4e39439a..47fd272e 100644 --- a/src/Entrust/Traits/EntrustRoleTrait.php +++ b/src/Entrust/Traits/EntrustRoleTrait.php @@ -66,7 +66,7 @@ public function restore() */ public function users() { - return $this->belongsToMany(Config::get('auth.providers.users.model'), Config::get('entrust.role_user_table'), Config::get('entrust.role_foreign_key'), Config::get('entrust.user_foreign_key')); + return $this->belongsToMany(Config::get('entrust.user'), Config::get('entrust.role_user_table'), Config::get('entrust.role_foreign_key'), Config::get('entrust.user_foreign_key')); } /**