From 273ac6caf6492624f20ec9c8e36ab9376f3c41f4 Mon Sep 17 00:00:00 2001 From: kent Date: Mon, 1 Dec 2025 22:43:39 +0900 Subject: [PATCH] =?UTF-8?q?fix(mng):=20Role=20=EB=AA=A8=EB=8D=B8=20withTra?= =?UTF-8?q?shed()=20=ED=98=B8=EC=B6=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Role 모델에 SoftDeletes 트레이트가 없어 에러 발생 - 테넌트 아카이브 시 역할 조회 로직 수정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Services/ArchiveService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ArchiveService.php b/app/Services/ArchiveService.php index 505a5fb1..7a8b70ec 100644 --- a/app/Services/ArchiveService.php +++ b/app/Services/ArchiveService.php @@ -180,8 +180,8 @@ public function archiveTenantWithRelations(Tenant $tenant): string ]); } - // 5. 역할 아카이브 - $roles = $tenant->roles()->withTrashed()->get(); + // 5. 역할 아카이브 (Role 모델에는 SoftDeletes 없음) + $roles = $tenant->roles()->get(); if ($roles->isNotEmpty()) { ArchivedRecordRelation::create([ 'archived_record_id' => $archivedRecord->id,