From f3d8c00d7882b504ba21535cfe37ef191e6f3cd9 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 13 Feb 2025 13:03:05 +0100 Subject: [PATCH] Adapt projects to deletable customers. --- app/Models/Project.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Project.php b/app/Models/Project.php index 5c15065..9fde576 100644 --- a/app/Models/Project.php +++ b/app/Models/Project.php @@ -69,7 +69,7 @@ class Project extends Model */ public function customer(): BelongsTo { - return $this->belongsTo(Customer::class); + return $this->belongsTo(Customer::class)->withTrashed(); } public function invoices(): HasMany