Edit File: 2020_08_18_000000_create_countries_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCountriesTable extends Migration { public function up() { Schema::create('countries', function (Blueprint $table) { $table->id(); $table->string('name')->nullable(); $table->string('key', 100)->default('+966'); $table->string('flag')->nullable(); $table->timestamps(); }); } public function down() { Schema::dropIfExists('countries'); } }
Back to File Manager