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.
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.
use statement per model.toArray()/JSON.How can I help you explore Laravel packages today?