diff --git a/src/Macros/MacroServiceProvider.php b/src/Macros/MacroServiceProvider.php index 16a34c5a..d4bc4118 100644 --- a/src/Macros/MacroServiceProvider.php +++ b/src/Macros/MacroServiceProvider.php @@ -22,7 +22,7 @@ public function boot(): void */ fn (string $hashedValue, string $key = 'id'): bool => /* @var Collection $this */ - $this->contains($key, hashids()->tryEncode($hashedValue)), + $this->contains($key, hashids()->tryDecode($hashedValue)), ); }