A drop in solution for eloquent implicit route model binding with hashid's
By default this package salts route keys the model’s fully qualified class name combined with your app key. If you’d like to change this, for example when you use a rotating app key, simply add HASHID_BINDING_SALT
to your environment file. The FQCN is still added to the salt for uniqueness.
The default minimum length for encoded route keys is five characters. This can be changed by adding (int) HASHID_BINDING_MIN_LENGTH
to your environment file.
By default all settings can be changed using environment variables. If you have the need to do this via a config file this is possible also. Simply run the following command:
php artisan vendor:publish --tag"hashid-binding"
and make your changes there.