From 62058e910d6f79e2f783887c0cec76fcfef4f467 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 13 Oct 2021 09:10:44 +1100 Subject: [PATCH] Return fresh model instance --- app/Http/Livewire/BillingPortalPurchase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/BillingPortalPurchase.php b/app/Http/Livewire/BillingPortalPurchase.php index 1b358125981f..9586ae7a9ee2 100644 --- a/app/Http/Livewire/BillingPortalPurchase.php +++ b/app/Http/Livewire/BillingPortalPurchase.php @@ -268,7 +268,7 @@ class BillingPortalPurchase extends Component $client = $client_repo->save($data, ClientFactory::create($company->id, $user->id)); - return $client->contacts->first(); + return $client->fresh()->contacts->first(); } /**