FluxBB\Web\Controllers\PostController::create PHP Method

create() public method

public create ( )
    public function create()
    {
        try {
            $result = $this->execute('reply.topic');
            $post = $result['post'];
            return $this->redirectTo('viewpost', ['id' => $post->id])->withMessage(trans('fluxbb::post.post_added'));
        } catch (ValidationFailed $e) {
            return $this->redirectTo('conversation')->withInput()->withErrors($e);
        }
    }