increments('id'); $table->integer('category_id')->nullable(); $table->string('title', 255)->nullable(); $table->text('summary')->nullable(); $table->text('description')->nullable(); $table->text('images')->nullable(); $table->string('tags', 225)->nullable(); $table->integer('viewcount')->nullable(); $table->string('slug', 255)->nullable(); $table->enum('status', ['draft','completed','approved','published'])->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('tutorials'); } }