WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
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