Update the index page to show only city's companies.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -55,9 +55,11 @@ class CompanyController extends Controller
|
|||||||
$companyAPI = new CompanyAPI($fetcher);
|
$companyAPI = new CompanyAPI($fetcher);
|
||||||
|
|
||||||
$companyMap = $companyAPI->getMap($city_uuid);
|
$companyMap = $companyAPI->getMap($city_uuid);
|
||||||
$companyAPI->saveMap($companyMap);
|
$companyAPI->saveMap($companyMap, $city);
|
||||||
|
|
||||||
return new CompanyCollection(Company::all());
|
$companies = $city->getCompanies();
|
||||||
|
|
||||||
|
return new CompanyCollection($companies);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user