withCount('chapters')->get(); return view('index', compact(['courses'])); } public function download(HtmlParser $htmlParser) { $service = new SymfonyCastDlService($htmlParser); $service->getInfo(); } }