Ability to shorten model names #15
abishekrsrikaanth
started this conversation in
Ideas
Replies: 1 comment
-
nvm, I figured out from the docs that this is actually possible. Went through the docs again... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First off, love the package and it is very useful.
Based on the docs, the model name is snake cased and prefixed to a random unique id. It would be great if there was a way to customize the string that is prefixed to the unique id. Either have this option on the model itself based on a method that can be overridden or on the config with a series of models that require a custom string prefixed. Sometimes it's annoying and also not sure if it's a security issue when the model name is snake cased revealing the table name on the database.
Something like this on the model itself
User.php
or on the config
Beta Was this translation helpful? Give feedback.
All reactions