From 40bdf916fde5709a1005120090a8a33d2a534bf9 Mon Sep 17 00:00:00 2001 From: Patryk Orwat Date: Tue, 11 Mar 2014 15:26:01 +0100 Subject: [PATCH] fixed conigurable pivot table --- src/Zizaco/Entrust/EntrustRole.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zizaco/Entrust/EntrustRole.php b/src/Zizaco/Entrust/EntrustRole.php index da589764..20e96838 100644 --- a/src/Zizaco/Entrust/EntrustRole.php +++ b/src/Zizaco/Entrust/EntrustRole.php @@ -48,7 +48,7 @@ public function perms() // To maintain backwards compatibility we'll catch the exception if the Permission table doesn't exist. // TODO remove in a future version try { - return $this->belongsToMany(Config::get('entrust::permission')); + return $this->belongsToMany(Config::get('entrust::permission'), Config::get('entrust::permission_role_table')); } catch(Execption $e) {} }