Skip to content
Discussion options

You must be logged in to vote

You need to commit routes to the store before using them inside a command. The following as the first statement in the command run method should do the job.

this.application.container.use('Adonis/Core/Route').commit()

// Now use drive

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mattkenefick
Comment options

Answer selected by mattkenefick
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