I am using laravel 4.2 and I want to use hashes instead of the primary key in the urls. It is easy to use with one record. If I use active loading, I need to go through all the models and replace the primary keys with hash identifiers.
For instance. For each post I need to change the post_id with a hashid. For every comment on the publication, I have to do the same. For each user comment, etc. Can I extend the model to return hashid by default?
source
share