where(function ($q) { $q->where('name', '협력사관리') ->orWhere('name', '협력사 관리'); }) ->first(); if ($menu) { $oldName = $menu->name; $menu->name = '거래처 관리'; $menu->save(); $this->command->info("메뉴 이름 변경: {$oldName} → 거래처 관리"); } else { $this->command->warn('협력사관리 메뉴를 찾을 수 없습니다. 현재 메뉴 목록:'); Menu::where('tenant_id', $tenantId) ->whereNull('parent_id') ->orderBy('sort_order') ->get(['id', 'name', 'url']) ->each(fn ($m) => $this->command->line(" - [{$m->id}] {$m->name} ({$m->url})")); } } }