Procházet zdrojové kódy

feat: adiciona faixa de habitantes em contrato

ebagabee před 1 měsícem
rodič
revize
d39397cfe1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)