skip to Main Content

How to handle deadlocks in Laravel

Laravel docs recommends using attempts to deal with Deadlocks (https://shorturl.at/bsKta) But, the handleTransactionException() method inside the transaction() method has a comment: On a deadlock, MySQL rolls back the entire transaction so we can't just retry the query. We have to…

VIEW QUESTION

How can I adapt a Laravel query?

Help please... These are my migrations​ // Test 1 table public function up(): void { Schema::create('test1s', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('desc')->nullable(); $table->timestamps(); }); } next... // Test 2 table public function up(): void { Schema::create('test2s', function (Blueprint $table)…

VIEW QUESTION
Back To Top
Search