diff --git a/app/Models/Company.php b/app/Models/Company.php index a1416ebb..54ae1e23 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -131,7 +131,7 @@ class Company extends AbstractModel implements Documentable */ public function services(): Builder { - if ($this->type === 3) { + if ($this->business_type === 3) { return ServiceType::where('status', ApprovalStatus::APPROVED)->whereHas('constants', function($query) { $query->where(function($query) { $query->where('reference', SegmentConstants::SERVICE_TYPE)->where('detail->is_active', true);