Migration - Sadece 1 Alan!
branch_name ekle (settings gereksiz, adres zaten fatura adresinde var)
public function up()
{
Schema::table('muzibu_corporate_accounts', function ($table) {
$table->string('branch_name')->nullable()->after('company_name');
});
}
Kullanım
MuzibuCorporateAccount::create([
'user_id' => $user->id,
'parent_id' => null,
'company_name' => 'Starbucks',
'branch_name' => null,
]);
MuzibuCorporateAccount::create([
'user_id' => $user->id,
'parent_id' => $anaShube->id,
'branch_name' => 'Kadıköy Şubesi',
]);