Closed haridarshan closed 10 months ago
We are not supporting usage outside of Laravel Framework. I can't reproduce since the provided example was for Laravel 9. Please leave a comment with an up-to-date example if you still have a problem that we can solve.
Hi,
I'm facing an issue when having multiple MongoDb Connections and updating any existing Model in collection. I'm using this package outside laravel so here my sample code.
Illuminate Database 5.8 Jessengers MongoDb 3.5
When I execute the script, object I get is this
Amazing thing to notice is $connection is not set even though in Model I've
protected $connection = 'test1';
set and response result after save is 1 but document is not updated in the db.Model Structure
Also, if I change test1 to default, update works. So, please help me out