increments('id'); $table->integer('parent_id')->nullable(); $table->integer('level')->nullable(); $table->string('name', 50)->nullable(); $table->enum('status', ['draft','complete','verify','approve','publish','unpublish','archive'])->nullable(); $table->string('slug', 200)->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 50)->nullable(); $table->string('upload_folder', 100)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('categories'); } }