Download the PHP package coderscantina/hashidable without Composer
On this page you can find all versions of the php package coderscantina/hashidable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download coderscantina/hashidable
More information about coderscantina/hashidable
Files in coderscantina/hashidable
Download coderscantina/hashidable
More information about coderscantina/hashidable
Files in coderscantina/hashidable
Vendor coderscantina
Package hashidable
Short Description An adapted bridge for using hashids in Laravel models.
License MIT
Package hashidable
Short Description An adapted bridge for using hashids in Laravel models.
License MIT
Please rate this library. Is it a good library?
Informations about the package hashidable
Hashidable from Coder's Cantina
An adapted bridge for using laravel-hashids in Laravel models.
Features
- Hashid route model binding
- Individual salt per model
- Optional individual configuration per model
- Helper methods for encoding, decoding and finding by hashid
- Collection support for working with multiple hashids
- Performance optimizations with factory caching
🏗 Install
Install the package via composer using this command:
⚙️ Usage
Add the Hashidable trait to your model
Route Model Binding
Expose the hashid in a resource
Resolve the model via hashid in a controller
Working with Single Models/IDs
Static methods to work with hashIds:
Working with Collections/Arrays
Methods for working with multiple models or IDs:
Custom Configuration
Overwrite config with a model like App\User::class
See for more information Route Model Binding
All versions of hashidable with dependencies
PHP Build Version
Package Version
Requires
php Version
~7.3||^8.0
illuminate/support Version ^8.0||^9.0||^10.0||^11.0||^12.0
vinkla/hashids Version ~9.1||~10.0||^11.0||^12.0||^13.0
illuminate/support Version ^8.0||^9.0||^10.0||^11.0||^12.0
vinkla/hashids Version ~9.1||~10.0||^11.0||^12.0||^13.0
The package coderscantina/hashidable contains the following files
Loading the files please wait ....