<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateSlidersTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: sliders */ Schema::create('sliders', function ($table) { $table->increments('id'); $table->integer('user_id')->nullable(); $table->string('user_type', 25)->nullable(); $table->string('name', 250)->nullable(); $table->string('title1', 250)->nullable(); $table->string('title2', 250)->nullable(); $table->string('title3', 255)->nullable(); $table->string('slug', 50)->nullable(); $table->enum('page', ['studio','albums'])->nullable(); $table->text('images')->nullable(); $table->enum('status', ['Show','Hide'])->nullable(); $table->text('upload_folder')->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('sliders'); } }