Skip to content

Commit df0fd59

Browse files
authored
Update migration.stub
Anonymous Class (Laravel 10)
1 parent 9ee1464 commit df0fd59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/stubs/migration.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Database\Migrations\Migration;
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
{{schema_down}}
2727
}
28-
}
28+
};

0 commit comments

Comments
 (0)