Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Hashids

Eloquent Hashids Laravel Package

matt-daneshvar/eloquent-hashids

Laravel package that adds Hashids support to Eloquent models, hiding auto-increment IDs behind short, reversible hashes. A trait encodes route keys and resolves models from hashids, keeping URLs clean and database IDs private with minimal setup.

View on GitHub
Deep Wiki
Context7

eloquent-hashids brings Hashids to Laravel's Eloquent ORM, letting models expose short, non-sequential public IDs instead of raw primary keys. Add the trait to a model and hashed identifiers are generated automatically for URLs, JSON, and route model binding—while your database keeps efficient integer keys.

  • Simple trait integration — one use statement per model.
  • Route model binding — hashed parameters resolve to models automatically.
  • Configurable — set salt, minimum length, and alphabet.
  • Clean serialization — hashed IDs appear in toArray()/JSON.
  • Laravel-native — follows existing Eloquent conventions.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console