increments('id'); $table->integer('parent_id')->nullable(); $table->integer('nest_left')->nullable(); $table->integer('nest_right')->nullable(); $table->integer('nest_depth')->nullable(); $table->string('name', 255)->nullable(); $table->string('description', 255)->nullable(); $table->enum('type', ['country','state','district','city','location'])->nullable(); $table->string('latitude', 100)->nullable(); $table->string('longitude', 100)->nullable(); $table->string('slug', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('locations'); } }