mongodb / laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

Home Page:https://www.mongodb.com/compatibility/mongodb-laravel-integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DatabaseTransactions and mongodb

ozanuzer opened this issue · comments

commented
  • Laravel-mongodb Version: 4.1.1
  • PHP Version: 8.3.3
  • Database Driver & Version: php mongodb extension 1.17.2 & MongoDB 7.0.2 Community

Description:

Hello, I am trying to run unit test and test including inserting and fetch data with mongodb. When I run test I am facing "Transaction numbers are only allowed on a replica set member or mongos". When I googling it, I can see "use DatabaseTransactions;" is problem. How can I fix that? I am using macos.