diff --git a/app/Models/CompanyGateway.php b/app/Models/CompanyGateway.php index 0942bbf6bcc4..f668d8423f2a 100644 --- a/app/Models/CompanyGateway.php +++ b/app/Models/CompanyGateway.php @@ -413,8 +413,9 @@ class CompanyGateway extends BaseModel public function resolveRouteBinding($value, $field = null) { + return $this - ->where('id', $this->decodePrimaryKey($value))->firstOrFail(); + ->where('id', $this->decodePrimaryKey($value))->withTrashed()->firstOrFail(); }