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;
4
4
use Illuminate\Database\Schema\Blueprint;
5
5
use Illuminate\Support\Facades\Schema;
6
6
7
- class {{ class }} extends Migration
7
+ return new class extends Migration
8
8
{
9
9
/**
10
10
* Run the migrations.
@@ -28,4 +28,4 @@ class {{ class }} extends Migration
28
28
{
29
29
Schema::dropIfExists('{{ table }}');
30
30
}
31
- }
31
+ };
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
4
4
use Illuminate\Database\Schema\Blueprint;
5
5
use Illuminate\Support\Facades\Schema;
6
6
7
- class {{ class }} extends Migration
7
+ return new class extends Migration
8
8
{
9
9
/**
10
10
* Run the migrations.
@@ -25,4 +25,4 @@ class {{ class }} extends Migration
25
25
{
26
26
//
27
27
}
28
- }
28
+ };
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
4
4
use Illuminate\Database\Schema\Blueprint;
5
5
use Illuminate\Support\Facades\Schema;
6
6
7
- class {{ class }} extends Migration
7
+ return new class extends Migration
8
8
{
9
9
/**
10
10
* Run the migrations.
@@ -29,4 +29,4 @@ class {{ class }} extends Migration
29
29
//
30
30
});
31
31
}
32
- }
32
+ };
You can’t perform that action at this time.
0 commit comments