Bläddra i källkod

feat: adiciona faixa de habitantes em contrato

ebagabee 1 månad sedan
förälder
incheckning
d39397cfe1
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)