소스 검색

feat: adiciona faixa de habitantes em contrato

ebagabee 1 개월 전
부모
커밋
d39397cfe1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Services/FranchiseeContractService.php

+ 1 - 1
app/Services/FranchiseeContractService.php

@@ -18,7 +18,7 @@ public function getActive(): Collection
     {
         $today = now()->toDateString();
 
-        return FranchiseeContract::with('unit')
+        return FranchiseeContract::with(['unit', 'inhabitantClassification'])
             ->whereNotNull('start_date')
             ->whereNotNull('end_date')
             ->where('start_date', '<=', $today)