App\Http\Controllers\Forum\TopicsController::preview PHP Method

preview() public method

public preview ( )
    public function preview()
    {
        $forum = Forum::findOrFail(Request::input('forum_id'));
        priv_check('ForumTopicStore', $forum)->ensureCan();
        $post = new Post(['post_text' => Request::input('body'), 'user' => Auth::user(), 'post_time' => Carbon::now()]);
        $options = ['overlay' => true, 'signature' => $forum->enable_sigs];
        return view('forum.topics._post', compact('post', 'options'));
    }