increments('id'); $table->integer('user_id')->nullable(); $table->string('user_type', 100)->nullable(); $table->string('parent_id', 100)->nullable(); $table->enum('type', ['Continent','Country','State','Location','Sublocation'])->nullable(); $table->string('slug', 255)->nullable(); $table->string('name', 255)->nullable(); $table->string('code', 100)->nullable(); $table->text('details')->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('locations'); } }