File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ return new class extends Migration
10
10
{
11
11
public function up(): void
12
12
{
13
- Schema::create('{{ table }}', function (Blueprint $table) {
14
- $table->id();
15
- $table->timestamps();
16
- });
13
+ Schema::create(
14
+ '{{ table }}',
15
+ function (Blueprint $table) {
16
+ $table->id();
17
+ $table->timestamps();
18
+ },
19
+ );
17
20
}
18
21
19
22
public function down(): void
Original file line number Diff line number Diff line change @@ -6,19 +6,25 @@ use Illuminate\Database\Migrations\Migration;
6
6
use Illuminate\Database\Schema\Blueprint;
7
7
use Illuminate\Support\Facades\Schema;
8
8
9
- final class {{ class }} extends Migration
9
+ return new class extends Migration
10
10
{
11
11
public function up(): void
12
12
{
13
- Schema::table('{{ table }}', function (Blueprint $table) {
14
- //
15
- });
13
+ Schema::table(
14
+ '{{ table }}',
15
+ function (Blueprint $table) {
16
+ //
17
+ },
18
+ );
16
19
}
17
20
18
21
public function down(): void
19
22
{
20
- Schema::table('{{ table }}', function (Blueprint $table) {
21
- //
22
- });
23
+ Schema::table(
24
+ '{{ table }}',
25
+ function (Blueprint $table) {
26
+ //
27
+ },
28
+ );
23
29
}
24
- }
30
+ };
You can’t perform that action at this time.
0 commit comments