From e7b4e8482fa47a8b37066d1b3c11e5b081e5f71a Mon Sep 17 00:00:00 2001 From: Junior Santos Date: Thu, 7 Mar 2024 23:02:07 -0300 Subject: [PATCH] remove static function --- src/Concerns/HasACL.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Concerns/HasACL.php b/src/Concerns/HasACL.php index cec496b..745f4a9 100644 --- a/src/Concerns/HasACL.php +++ b/src/Concerns/HasACL.php @@ -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()), ); }