diff --git a/app/Http/Livewire/DocumentsTable.php b/app/Http/Livewire/DocumentsTable.php index a1a2566bc408..f808004d2e5b 100644 --- a/app/Http/Livewire/DocumentsTable.php +++ b/app/Http/Livewire/DocumentsTable.php @@ -50,7 +50,7 @@ class DocumentsTable extends Component { MultiDB::setDb($this->db); - $this->client = Client::with('company')->find($this->client_id); + $this->client = Client::withTrashed()->with('company')->find($this->client_id); $this->company = $this->client->company; diff --git a/app/Http/Livewire/PaymentMethodsTable.php b/app/Http/Livewire/PaymentMethodsTable.php index d0f85db911d3..ea6ad6d34e75 100644 --- a/app/Http/Livewire/PaymentMethodsTable.php +++ b/app/Http/Livewire/PaymentMethodsTable.php @@ -29,7 +29,7 @@ class PaymentMethodsTable extends Component { MultiDB::setDb($this->db); - $this->client = Client::with('company')->find($this->client_id); + $this->client = Client::withTrashed()->with('company')->find($this->client_id); $this->company = $this->client->company; } diff --git a/app/Models/ClientContact.php b/app/Models/ClientContact.php index 890027158d57..229cf262fd0f 100644 --- a/app/Models/ClientContact.php +++ b/app/Models/ClientContact.php @@ -240,7 +240,6 @@ class ClientContact extends Authenticatable implements HasLocalePreference { return $this ->withTrashed() - // ->company() ->where('id', $this->decodePrimaryKey($value))->firstOrFail(); }