id(); $table->foreignId('region_id')->constrained('region')->onDelete('cascade'); $table->foreignId('cost_id')->constrained('cost_centre')->onDelete('cascade'); $table->string('code'); $table->string('name'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('cabang'); } };