Edit File: 2021_11_22_111459_create_reasons_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateReasonsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('reasons', function (Blueprint $table) { $table->id(); $table->text('reason'); $table->enum('type',['cancel','withdraw','report','ticket'])->default('cancel'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('reasons'); } }
Back to File Manager