Dont
-
hash the id on either
boot::retrieved
orgetIdAttribute()
becausedelete() & forceDelete()
wont work as they create a new query which will keep getting the same hashed id -
use
Route::bind
in the service provider as its applying the bind globally.
Maybe
- save the hashed id to the db same as
UUID
but if u r using mysql, indexing will suffer