Skip to content

Not seeing hash_id actually saved in the DB #3

Answered by deligoez
james0r asked this question in Q&A
Discussion options

You must be logged in to vote

Hi James,

HashID generation can be all on-the-fly, you don't need to save HashIDs to the database.
You have all the routing/binding functionality by just adding HasHashIdRouting trait to your model.

But if you want to save HashIDs to your database for your purposes you can add SavesHashId trait to your model as well.

This feature is already documented and you can read more about that here

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by deligoez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants