id(); $table->timestamps(); $table->softDeletes(); $table->string('nama'); $table->string('kode', 2); }); Schema::create('master_kabupaten_kota', function (Blueprint $table) { $table->id(); $table->timestamps(); $table->softDeletes(); $table->string('nama'); $table->string('kode', 4); $table->foreignId('provinsi_id')->constrained('master_provinsi'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('master_kabupaten_kota'); Schema::dropIfExists('master_provinsi'); } };