Skip to content

Commit 02452c2

Browse files
Update migration.stub
1 parent 44d9a4c commit 02452c2

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Stubs/migration.stub

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ use Illuminate\Database\Migrations\Migration;
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateManyToManyPivotFor|UPPERFIRST||UPPERSECOND| extends Migration
7+
return new class extends Migration
88
{
9-
/**
10-
* Run the migrations.
11-
*
12-
* @return void
13-
*/
149
public function up()
1510
{
1611
Schema::create('|LOWERFIRST|_|LOWERSECOND|', function (Blueprint $table) {
@@ -22,14 +17,4 @@ class CreateManyToManyPivotFor|UPPERFIRST||UPPERSECOND| extends Migration
2217
->onDelete('cascade');
2318
});
2419
}
25-
26-
/**
27-
* Reverse the migrations.
28-
*
29-
* @return void
30-
*/
31-
public function down()
32-
{
33-
Schema::dropIfExists('|LOWERFIRST|_|LOWERSECOND|');
34-
}
3520
}

0 commit comments

Comments
 (0)