FluxBB\Web\Controllers\ConversationController::create PHP Метод

create() публичный Метод

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