-
I have a singleton service and I'm trying to query a model on it but I encounter the following error when compiling:
I need to work with lucid in the container, does anyone know how? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It looks like your service is attempting to be created before the ORM is loaded into the IoC container. Could you paste your provider class in here? An example provider that depends on other services can be found in the Auth package's provider. Is your provider specifying the |
Beta Was this translation helpful? Give feedback.
-
I managed to do so in the register method:
But I really wanted to use the models |
Beta Was this translation helpful? Give feedback.
I managed to do so in the register method:
But I really wanted to use the models