Skip to content

Commit

Permalink
Merge pull request nWidart#1672 from solomon-ochepa/patch-37
Browse files Browse the repository at this point in the history
Update delete.stub
  • Loading branch information
dcblogdev authored Oct 30, 2023
2 parents bccf2ac + f86522c commit 1f50f11
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/Commands/stubs/migration/delete.stub
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
public function up(): void
{
Schema::table('$TABLE$', function (Blueprint $table) {
$FIELDS_UP$
$FIELDS_UP$
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
public function down(): void
{
Schema::table('$TABLE$', function (Blueprint $table) {
$FIELDS_DOWN$
$FIELDS_DOWN$
});
}
};

0 comments on commit 1f50f11

Please sign in to comment.