Explorar o código

feat: adiciona faixa de habitantes em contrato

ebagabee hai 1 mes
pai
achega
d39397cfe1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)