[V6] Access database using Lucid Models inside a Ace command #4655
-
i am having issue with Models in command in Adonis V6 but still no luck with fixing it |
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Jul 18, 2024
Replies: 1 comment 1 reply
-
Hey @moabsi! 👋🏻 You have to start the application inside your command. 📚 https://docs.adonisjs.com/guides/ace/creating-commands#command-metadata |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
moabsi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @moabsi! 👋🏻
You have to start the application inside your command.
📚 https://docs.adonisjs.com/guides/ace/creating-commands#command-metadata