increments('id'); $table->integer('category_id')->nullable(); $table->string('title', 255)->nullable(); $table->text('description')->nullable(); $table->text('images')->nullable(); $table->text('tags')->nullable(); $table->integer('viewcount')->nullable(); $table->string('slug', 255)->nullable(); $table->enum('published', ['yes','no'])->nullable(); $table->text('published_at')->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('blogs'); } }