src/Wizard/WizardTrait.php
public function createFlow()
    {
        $model = app($this->modelName);
        $model->save();

        $step = $model->steps->firstId();

        return redirect()->route(sprintf('%s.get', $this->prefixRoute), ['flow' => $model->_id, 'step' => $step]);
    }
public function createFlow()
    {
        $model = app($this->modelName);
        $model->save();

        $step = $model->steps->firstId();

        return redirect()->route(sprintf('%s.get', $this->prefixRoute), ['flow' => $model->_id, 'step' => $step]);
    }
public function createFlow ( ) { $ model = app ( $ this -> modelName ) ; $ model -> save ( ) ; $ step = $ model -> steps -> firstId ( ) ; return redirect ( ) -> route ( sprintf ( '%s.get' , $ this -> prefixRoute ) , [ 'flow' => $ model -> _id , 'step' => $ step ] ) ; }
Cria novo flow.
@return \Illuminate\Http\RedirectResponse
Cria novo flow .