Unsupported driver [mongodb] #2643
-
I'm currently working with PHP (v8.1), Laravel/Lumen Framework (^10.0), MongoDB (v7.0.2), mongodb/laravel-mongodb(^4.0), mongodb/mongodb(^1.16) and Linux (v20.04). I've successfully installed the PHP MongoDB extension. I verified its installation for the CLI using the command For the Laravel-Lumen setup, I've learned that one should register bootstrap/app.php
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
same bug, need fix |
Beta Was this translation helpful? Give feedback.
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.