diff --git a/src/Traits/HashidsTrait.php b/src/Traits/HashidsTrait.php index 470337b..6f79936 100644 --- a/src/Traits/HashidsTrait.php +++ b/src/Traits/HashidsTrait.php @@ -58,7 +58,7 @@ public function unhashId($value) */ protected function shouldBeHashed(): bool { - $accessareas = app('accessareas')->active()->obscured()->keys()->when($this->obscure, fn($collection) => $collection->merge(collect($this->obscure)->intersect(app('accessareas')->active()->keys()))->unique())->toArray(); + $accessareas = app('accessareas')->active()->obscured()->keys()->when($this->obscure, fn ($collection) => $collection->merge(collect($this->obscure)->intersect(app('accessareas')->active()->keys()))->unique())->toArray(); return in_array(request()->accessarea(), $accessareas) && in_array($this->getRouteKeyName(), config('cortex.foundation.obscure.hashed_keys')); }