This commit is contained in:
2025-10-08 18:26:47 +02:00
parent ee1af56d03
commit f40c3d0f2e
6 changed files with 134 additions and 15 deletions
+1
View File
@@ -55,6 +55,7 @@ public function segments(): BelongsToMany
public function account(): HasOne
{
// Use latestOfMany to always surface newest account snapshot if multiple exist.
return $this->hasOne(\App\Models\Account::class)
->latestOfMany()
->with('type');