<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateCountriesTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: countries */ Schema::create('countries', function ($table) { $table->increments('id'); $table->integer('country_id')->nullable(); $table->string('country', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('countries'); } }