/** * Show the form for editing the specified activity. * * @param int $id * @return Response */ public function edit(TextRepo $repo, $id) { $text = $repo->getById($id); // return $text; return view('admin.texts.edit', compact('text')); }