I am getting Call to a member function beginTransaction() on null when importing data from "Maatwebsite\Excel\Excel" using lumen and MongoDB.
Asked
Active
Viewed 235 times
0
-
in /var/www/html/project/vendor/illuminate/database/Concerns/ManagesTransactions.php (line 175) protected function handleBeginTransactionException(Throwable $e) { if ($this->causedByLostConnection($e)) { $this->reconnect(); $this->getPdo()->beginTransaction(); } else { throw $e; } } – Zuhair Khan Nov 04 '21 at 16:17
-
I think your problem can be solved by checking this answer https://stackoverflow.com/questions/70666355/error-call-to-a-member-function-begintransaction-on-null – Lester Potestad Berovides May 23 '22 at 14:47