diff --git a/app/Invoice/Models/Invoice.php b/app/Invoice/Models/Invoice.php index a1e8848a..1efe7bfa 100644 --- a/app/Invoice/Models/Invoice.php +++ b/app/Invoice/Models/Invoice.php @@ -152,7 +152,7 @@ class Invoice extends Model public function toSearchableArray(): array { return [ - 'to' => implode(', ', $this->to->toArray()), + 'to' => implode(', ', $this->getRecipient()->toArray()), 'usage' => $this->usage, 'status' => $this->status->value, ];