deligoez/laravel-model-hashids
Add short, unique Hashids to your Laravel Eloquent models. This package provides a trait that obfuscates numeric IDs for URLs and APIs, with automatic route resolution, configurable salt, length and alphabet, while keeping integer keys internally.
GET /orders/1043 is a business-intelligence gift to a competitor.Adopt when:
prefer-lowest as well as prefer-stable, which is a meaningful signal of dependency hygiene — it means the package is tested against the oldest allowed versions, not just the newest.Look elsewhere when:
id + public_id scheme serve that better; hashids are reversible and not sortable.Given the v4.1.0 signal specifically: the formatting-only Pint changes and the widened testbench dev constraint carry no product risk, so prior adopters have no migration work and no reason to hold back.
For executives (one line): A small, actively maintained library that stops our public URLs and API responses from leaking how many customers, orders, or records we have — and the new release confirms it won't block our Laravel 13 upgrade.
For engineering (the substance):
illuminate/contracts ^13.0), keeps Laravel 11 and 12 fully supported, drops nothing. PHP 8.3 and 8.4 only.composer update — no code changes, no migration, no config changes. The rest of the diff is Pint formatting.prefer-lowest and prefer-stable resolutions, which is stronger coverage than most packages of this size provide.How can I help you explore Laravel packages today?