smallIncrements('id'); $table->unsignedTinyInteger('province_id'); $table->foreign('province_id') ->references('id') ->on('provinces'); $table->string('name_fa'); $table->string('name_en')->nullable(); $table->unsignedSmallInteger('feature_id')->nullable(); $table->unsignedTinyInteger('province_feature_id')->nullable(); $table->decimal('center_lat', 12, 10)->nullable(); $table->decimal('center_long', 12, 10)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cities'); } }