Skip to content

Commit

Permalink
Fix static variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmerainfo committed Oct 22, 2016
1 parent 00aa157 commit 620ff60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Ntrust/Traits/NtrustPermissionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Ntrust/Traits/NtrustRoleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Ntrust/Traits/NtrustUserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
}

Expand Down

0 comments on commit 620ff60

Please sign in to comment.