diff --git a/src/Hashidable.php b/src/Hashidable.php index 5aeb9c6..1081334 100644 --- a/src/Hashidable.php +++ b/src/Hashidable.php @@ -37,7 +37,7 @@ public static function findByHashidOrFail(string $hash) * @param string $columnId By default 'id' but can be diferent some developers * @return \Illuminate\Database\Eloquent\Builder */ - public static function whereHashid(string $hash, string $columnId = 'id') + public static function scopeWhereHashid(string $hash, string $columnId = 'id') { $static = new static();