fix: [equipment] User 모델 네임스페이스 경로 수정
- App\Models\User → App\Models\Members\User 경로 일괄 수정 - Equipment(manager, subManager), EquipmentInspection(inspector), EquipmentRepair(repairer) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -72,12 +72,12 @@ public function setOption(string $key, mixed $value): self
|
||||
|
||||
public function manager(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\App\Models\User::class, 'manager_id');
|
||||
return $this->belongsTo(\App\Models\Members\User::class, 'manager_id');
|
||||
}
|
||||
|
||||
public function subManager(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\App\Models\User::class, 'sub_manager_id');
|
||||
return $this->belongsTo(\App\Models\Members\User::class, 'sub_manager_id');
|
||||
}
|
||||
|
||||
public function canInspect(?int $userId = null): bool
|
||||
|
||||
@@ -33,7 +33,7 @@ public function equipment(): BelongsTo
|
||||
|
||||
public function inspector(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\App\Models\User::class, 'inspector_id');
|
||||
return $this->belongsTo(\App\Models\Members\User::class, 'inspector_id');
|
||||
}
|
||||
|
||||
public function details(): HasMany
|
||||
|
||||
@@ -57,6 +57,6 @@ public function equipment(): BelongsTo
|
||||
|
||||
public function repairer(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\App\Models\User::class, 'repaired_by');
|
||||
return $this->belongsTo(\App\Models\Members\User::class, 'repaired_by');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user