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