Skip to content

Commit

Permalink
Merge pull request #1671 from solomon-ochepa/patch-36
Browse files Browse the repository at this point in the history
Update create.stub
  • Loading branch information
dcblogdev authored Oct 30, 2023
2 parents 97c50d0 + dcfa26d commit f7e539b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/Commands/stubs/migration/create.stub
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
<?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::create('$TABLE$', function (Blueprint $table) {
$table->id();
$FIELDS$
$FIELDS$
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
public function down(): void
{
Schema::dropIfExists('$TABLE$');
}
Expand Down

0 comments on commit f7e539b

Please sign in to comment.