App\Http\Controllers\BlogController::show PHP 메소드

show() 공개 메소드

Display the specified resource.
public show ( string $slug ) : Illuminate\Http\Response
$slug string post url slug
리턴 Illuminate\Http\Response
    public function show($slug)
    {
        $post = $this->blog->getByColumn($slug, 'slug');
        return view('front.posts.post', compact('post'));
    }