Laravel 13 compatibility
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.2.3...v3.2.4
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.2.2...v3.2.3
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.2.1...v3.2.2
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.2.0...v3.2.1
This release brings Laravel 11/12 compatibility, PHP 8.4 support, and powerful new column selection features while maintaining full backward compatibility.
byHash() Methods// Before: Load all columns (existing behavior)
$user = User::byHash($hash);
// NEW: Load only specific columns (better performance!)
$user = User::byHash($hash, ['name', 'email']);
// NEW: Single column selection
$user = User::byHash($hash, ['name']);
// NEW: Column selection with fail-fast
$user = User::byHashOrFail($hash, ['name', 'email']);
Benefits:
['*'] loads all columns, just like before| Laravel HashId | PHP Version | Laravel 10 | Laravel 11 | Laravel 12 |
|---|---|---|---|---|
| 3.2 🌟 | ≥ 8.1 | ✅ | ✅ | ✅ |
*🌟 *Recommended stable version with full modern support
.github/README.mdNo changes required! This version is 100% backward compatible.
// All existing code continues to work exactly as before
$user = User::byHash($hash);
$user = User::byHashOrFail($hash);
// For better performance, consider column selection
$user = User::byHash($hash, ['name', 'email']); // NEW in v3.2.0
# For new projects
composer require veelasky/laravel-hashid
# For existing projects (upgrade)
composer update veelasky/laravel-hashid
See the CHANGELOG.md for detailed release notes and all changes.
v3.2.0 is the recommended stable version with:
Upgrade today and enjoy the new features! 🎉
For developers who want to live on the edge, 4.x-dev branch is available with continued improvements.
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.1.3...v3.1.4
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.1.2...v3.1.3
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.1.1...v3.1.2
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.1.0...v3.1.1
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.0.2...v3.1.0
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.0.1...v3.0.2
Full Changelog: https://github.com/veelasky/laravel-hashid/compare/v3.0.0...v3.0.1
$hashKey property if configurablebyHashOrFail not throwing ModelNotFoundException.How can I help you explore Laravel packages today?