From 620ff60be7826dadc0c92b065c1e39db9db2ca1c Mon Sep 17 00:00:00 2001 From: Keyur Ajmera Date: Fri, 21 Oct 2016 20:16:25 -0700 Subject: [PATCH] Fix static variable --- src/Ntrust/Traits/NtrustPermissionTrait.php | 2 +- src/Ntrust/Traits/NtrustRoleTrait.php | 2 +- src/Ntrust/Traits/NtrustUserTrait.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ntrust/Traits/NtrustPermissionTrait.php b/src/Ntrust/Traits/NtrustPermissionTrait.php index 49b173f..d9ea595 100644 --- a/src/Ntrust/Traits/NtrustPermissionTrait.php +++ b/src/Ntrust/Traits/NtrustPermissionTrait.php @@ -27,7 +27,7 @@ public static function boot() parent::boot(); static::deleting(function($permission) { - if (!method_exists(Config::get('ntrust.profiles.' . self::staticRoleProfile . '.permission'), 'bootSoftDeletes')) { + if (!method_exists(Config::get('ntrust.profiles.' . self::$staticRoleProfile . '.permission'), 'bootSoftDeletes')) { $permission->roles()->sync([]); } diff --git a/src/Ntrust/Traits/NtrustRoleTrait.php b/src/Ntrust/Traits/NtrustRoleTrait.php index 3ccf334..c56d196 100644 --- a/src/Ntrust/Traits/NtrustRoleTrait.php +++ b/src/Ntrust/Traits/NtrustRoleTrait.php @@ -91,7 +91,7 @@ public static function boot() parent::boot(); static::deleting(function($role) { - if (!method_exists(Config::get('ntrust.profiles.' . self::staticRoleProfile . '.role'), 'bootSoftDeletes')) { + if (!method_exists(Config::get('ntrust.profiles.' . self::$staticRoleProfile . '.role'), 'bootSoftDeletes')) { $role->users()->sync([]); $role->perms()->sync([]); } diff --git a/src/Ntrust/Traits/NtrustUserTrait.php b/src/Ntrust/Traits/NtrustUserTrait.php index c7caf55..62268d0 100644 --- a/src/Ntrust/Traits/NtrustUserTrait.php +++ b/src/Ntrust/Traits/NtrustUserTrait.php @@ -67,7 +67,7 @@ public static function boot() parent::boot(); static::deleting(function($user) { - if (!method_exists(Config::get('ntrust.profiles.' . self::staticRoleProfile . '.model'), 'bootSoftDeletes')) { + if (!method_exists(Config::get('ntrust.profiles.' . self::$staticRoleProfile . '.model'), 'bootSoftDeletes')) { $user->roles()->sync([]); }