parables/laravel-model-nanoid
/users/abc123 instead of /users/123) for better UX and security.Adopt if:
Look elsewhere if:
WHERE id IN (...)).For Executives:
"This package lets us replace database auto-increment IDs with shorter, secure, and URL-friendly NanoIDs (e.g., abc123 instead of 123). It’s faster than UUIDs, harder to guess, and works seamlessly in Laravel. Ideal for APIs or public-facing apps where exposing sequential IDs is a risk. Minimal dev effort—just install and index the column."
For Engineering:
*"Leverages ai/nanoid (PHP port) to generate 21-char IDs (vs. UUID’s 36) with a larger alphabet (A-Za-z0-9_-). Key benefits:
users/1 → users/abc123).composer require parables/laravel-model-nanoid + add use NanoId; to models. Ready in <1 hour."*How can I help you explore Laravel packages today?