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 de7cf5b commit 6e0cf3a
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 @@ -37,4 +36,4 @@ public function up()
public function down()
{
}
}
};

0 comments on commit 6e0cf3a

Please sign in to comment.