acarsRepo = $acarsRepo; $this->geoSvc = $geoSvc; } /** * @param Request $request * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function index(Request $request) { $pireps = $this->acarsRepo->getPositions(); $positions = $this->geoSvc->getFeatureForLiveFlights($pireps); return $this->view('acars.index',[ 'pireps' => $pireps, 'positions' => $positions, ]); } }