Skip to content
Discussion options

You must be logged in to vote

You'll want to define your own naming strategy and apply it to your Models or the AdonisJS BaseModel
https://docs.adonisjs.com/reference/orm/naming-strategy#document
https://docs.adonisjs.com/reference/orm/base-model#static-namingstrategy

I also have a lesson on this on Adocasts, though we create our own BaseModel extending Adonis' in my lesson, either way works though.
https://www.youtube.com/watch?v=OAzvVHnsU8M

Replies: 1 comment

Comment options

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