Prechádzať zdrojové kódy

feat: adiciona faixa de habitantes em contrato

ebagabee 1 mesiac pred
rodič
commit
d39397cfe1

+ 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)