Skip to content

paouriel/laravel-mongodb-transaction-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

laravel-mongodb-transaction-fix

This will add a console command that will automatically update: vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Connection.php and include the necessary functions/commands for beginTransaction(). This fixes Call to a member function beginTransaction() on null

Installation

Simply move MongoDBTransactionFix.php to app/Console/Commands. Create Commands folder if does not exist.

How to use

Run php artisan fix:transaction. To revert, run php artisan fix:transaction --rollback

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages