App\Http\Controllers\Forum\PostsController::raw PHP Method

raw() public method

public raw ( $id )
    public function raw($id)
    {
        $post = Post::findOrFail($id);
        priv_check('ForumView', $post->forum)->ensureCan();
        $text = $post->bodyRaw;
        if (Request::input('quote') === '1') {
            $text = sprintf('[quote="%s"]%s[/quote]', $post->userNormalized()->username, $text);
        }
        return $text;
    }