Skip to content
Discussion options

You must be logged in to vote

I managed to do so in the register method:

this.$container.singleton('Mota/Auth', () => {
      const data = this.$container.use('Adonis/Lucid/Database')

      return new AuthenticateService(data)
    })

But I really wanted to use the models

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

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