App\Http\Controllers\BlogController::show PHP Method

show() public method

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