public function show($id = 0) { $post = Post::find($id); return view('admin.posts.show')->with('post', $post); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $post = Post::find($id); $title = $post->title; return view('posts.show')->with(['title' => $title, 'post' => $post]); }