style: Pint 포맷팅 적용
This commit is contained in:
@@ -19,8 +19,9 @@ public function run(): void
|
||||
->where('name', '법인차량관리')
|
||||
->first();
|
||||
|
||||
if (!$parentMenu) {
|
||||
if (! $parentMenu) {
|
||||
$this->command->error('법인차량관리 메뉴를 찾을 수 없습니다.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -28,23 +29,25 @@ public function run(): void
|
||||
$maintenanceMenu = Menu::where('tenant_id', $tenantId)
|
||||
->where(function ($q) {
|
||||
$q->where('name', '차량정비이력')
|
||||
->orWhere('name', '차량정비');
|
||||
->orWhere('name', '차량정비');
|
||||
})
|
||||
->first();
|
||||
|
||||
if (!$maintenanceMenu) {
|
||||
if (! $maintenanceMenu) {
|
||||
$this->command->error('차량정비이력 메뉴를 찾을 수 없습니다.');
|
||||
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})"));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// 이미 법인차량관리 하위에 있는지 확인
|
||||
if ($maintenanceMenu->parent_id == $parentMenu->id) {
|
||||
$this->command->info('차량정비이력은 이미 법인차량관리 하위에 있습니다.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user