src/Discussion/Discussion.php
public function refreshLastPost()
    {
        /** @var Post $lastPost */
        if ($lastPost = $this->comments()->latest()->first()) {
            $this->setLastPost($lastPost);
        }

        return $this;
    }
public function refreshLastPost()
    {
        /** @var Post $lastPost */
        if ($lastPost = $this->comments()->latest()->first()) {
            $this->setLastPost($lastPost);
        }

        return $this;
    }
public function refreshLastPost ( ) { /** @var Post $lastPost */ if ( $ lastPost = $ this -> comments ( ) -> latest ( ) -> first ( ) ) { $ this -> setLastPost ( $ lastPost ) ; } return $ this ; }
Refresh a discussion's last post details.

@return $this
Refresh a discussion s last post details .