|
@@ -34,7 +34,8 @@ public function findById(int $id): ?FranchiseeContract
|
|
|
|
|
|
|
|
public function getByUnitId(int $unitId): Collection
|
|
public function getByUnitId(int $unitId): Collection
|
|
|
{
|
|
{
|
|
|
- return FranchiseeContract::where('unit_id', $unitId)
|
|
|
|
|
|
|
+ return FranchiseeContract::with('inhabitantClassification')
|
|
|
|
|
+ ->where('unit_id', $unitId)
|
|
|
->orderBy('created_at', 'desc')
|
|
->orderBy('created_at', 'desc')
|
|
|
->get();
|
|
->get();
|
|
|
}
|
|
}
|