Skip to content

Commit

Permalink
remove static function
Browse files Browse the repository at this point in the history
  • Loading branch information
juhniorsantos committed Mar 8, 2024
1 parent e6645be commit e7b4e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/HasACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ public function loadACLCache(): void
{
$this->setRelation(
'roles',
Cache::rememberForever($this->makeACLCacheKey('roles'), static fn () => $this->roles()->get()),
Cache::rememberForever($this->makeACLCacheKey('roles'), fn () => $this->roles()->get()),
);

$this->setRelation(
'permissions',
Cache::rememberForever($this->makeACLCacheKey('permissions'), static fn () => $this->permissions()->get()),
Cache::rememberForever($this->makeACLCacheKey('permissions'), fn () => $this->permissions()->get()),
);
}

Expand Down

0 comments on commit e7b4e84

Please sign in to comment.