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
Laravel Eloquent Hashids

Laravel Eloquent Hashids Laravel Package

naabster/laravel-eloquent-hashids

Integrate Hashids with Laravel Eloquent models: automatically encode numeric IDs into short, obfuscated strings and decode them back. Supports route model binding, custom salts, and seamless model lookups for cleaner, safer URLs.

View on GitHub
Deep Wiki
Context7

naabster/laravel-eloquent-hashids adds transparent Hashids support to Laravel Eloquent models. It lets you expose obfuscated, URL-friendly public IDs instead of numeric primary keys while keeping your database schema unchanged, and supports route model binding so incoming hashed IDs resolve back to the correct model automatically.

  • Automatically encodes/decodes model keys with Hashids
  • Works with Laravel route model binding
  • Keeps numeric IDs internal while exposing hashed public IDs
  • Configurable salt, length, alphabet, and model-specific settings
  • Easy trait-based integration with existing Eloquent models
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo