/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(Publication $publication, Category $category) { return view('pages.publications.edit', compact('publication'))->with(['category' => $category->lists('name', 'id')]); }