Skip to content

Commit 57f60ea

Browse files
authored
Update migration.create.stub
1 parent d57e934 commit 57f60ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/stubs/migration.create.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Illuminate\Database\Migrations\Migration;
66
use Illuminate\Database\Schema\Blueprint;
77
use Illuminate\Support\Facades\Schema;
88

9-
class {{ class }} extends Migration
9+
return new class extends Migration
1010
{
1111
public function up()
1212
{
@@ -20,4 +20,4 @@ class {{ class }} extends Migration
2020
{
2121
Schema::dropIfExists('{{ table }}');
2222
}
23-
}
23+
};

0 commit comments

Comments
 (0)