File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/Illuminate/Database/Migrations/stubs Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
44use Illuminate\Database\Schema\Blueprint;
55use Illuminate\Support\Facades\Schema;
66
7- class {{ class }} extends Migration
7+ return new class extends Migration
88{
99 /**
1010 * Run the migrations.
@@ -28,4 +28,4 @@ class {{ class }} extends Migration
2828 {
2929 Schema::dropIfExists('{{ table }}');
3030 }
31- }
31+ };
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
44use Illuminate\Database\Schema\Blueprint;
55use Illuminate\Support\Facades\Schema;
66
7- class {{ class }} extends Migration
7+ return new class extends Migration
88{
99 /**
1010 * Run the migrations.
@@ -25,4 +25,4 @@ class {{ class }} extends Migration
2525 {
2626 //
2727 }
28- }
28+ };
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
44use Illuminate\Database\Schema\Blueprint;
55use Illuminate\Support\Facades\Schema;
66
7- class {{ class }} extends Migration
7+ return new class extends Migration
88{
99 /**
1010 * Run the migrations.
@@ -29,4 +29,4 @@ class {{ class }} extends Migration
2929 //
3030 });
3131 }
32- }
32+ };
You can’t perform that action at this time.
0 commit comments