app/Http/Controllers/PostController.php
/**
     * Display the specified resource.
     *
     * @return \Illuminate\Http\Response
     */
Display the specified resource.
@return \Illuminate\Http\Response
Display the specified resource . @return \ Illuminate \ Http \ Response
public function show(Post $post)
    {
        $post->loadMissing('user');
        SEOTools::setTitle($post->title);
        SEOTools::setDescription($post->description);
        SEOTools::opengraph()->addProperty('type', 'articles');
        return view('posts.show', [
            'post' => $post,
        ]);
    }
public function show ( Post $ post ) { $ post -> loadMissing ( 'user' ) ; SEOTools :: setTitle ( $ post -> title ) ; SEOTools :: setDescription ( $ post -> description ) ; SEOTools :: opengraph ( ) -> addProperty ( 'type' , 'articles' ) ; return view ( 'posts.show' , [ 'post' => $ post , ] ) ; }
Display the specified resource.
Display the specified resource .
// TODO: cache the markdown