Edit File: 2021_11_01_104834_create_paymentmethods_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePaymentmethodsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('paymentmethods', function (Blueprint $table) { $table->id(); $table->string('name'); $table->enum('key',['cash','online','wallet'])->default('cash'); $table->string('image'); $table->string('desc')->nullable(); $table->enum('status',['active','not_active'])->default('active'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('paymentmethods'); } }
Back to File Manager