Skip to content

Unsupported driver [mongodb] #2643

Answered by zyz954489346
saurabhrc15 asked this question in Q&A
Discussion options

You must be logged in to vote

I found the cause of the problem.
See this Provider:

If there is a package run "app('db')" or "app->make('db)" in its provider, before this code in laravel-mongodb package.
Because db is registered as a singleton,so the resolving function will not be executed again.
So mongodb cannot be properly bound to the Provider.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@zyz954489346
Comment options

Answer selected by saurabhrc15
@zyz954489346
Comment options

@spinalwiz
Comment options

@alcaeus
Comment options

@zyz954489346
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants