/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $routeName = 'source'; $routeMethod = 'show'; $source = $this->source->getById($id); $records = $this->source->getAllRecords($source); $data = compact('routeName', 'routeMethod', 'source', 'records'); \Clockwork::info($source); return view('admin.sections.source.show', $data); }