Skip to content

Commit

Permalink
Use anonymous class for migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Dec 28, 2023
1 parent 92998d3 commit b1fc8a3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

class DropForeignKeyConstraints extends Migration
{
return new class extends Migration {
public function up()
{
Schema::disableForeignKeyConstraints();
Expand Down Expand Up @@ -38,4 +37,4 @@ public function up()
public function down()
{
}
}
};

0 comments on commit b1fc8a3

Please sign in to comment.