how to use DB::transaction in two method laravel code example
Example: laravel transaction query not working when multiple db connection
Start the transaction on the same connection your query will run on.
Start the transaction on the same connection your query will run on.