increments('id'); $table->integer('category_id')->nullable(); $table->string('title', 255)->nullable(); $table->longText('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->timestamp('published_at')->nullable(); $table->string('user_type', 255)->nullable(); $table->integer('user_id')->nullable(); $table->string('upload_folder', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('blogs'); } }