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