src/Wizard/WizardTrait.php
public function getSteps()
    {
        // Carregar step do conexto e atual
        $step = $this->flow(router()->current()->parameter('step'));

        // Carregar view
        $view_id = sprintf('%s.%s', $this->prefixViewName, $step->key);
        if (! view()->exists($view_id)) {
            error('View of step "%s" not found', $view_id);
        }

        $view = view($view_id);
        $view->with('steps', $this->model->steps);
        $view->with('step', $step);
        $view->with('model', $this->model);
        $view->with($this->viewParams);

        $view->with('step_url', function ($step, $method = 'get') {
            return $this->stepUrl($step, $method);
        });

        return $view;
    }
public function getSteps()
    {
        // Carregar step do conexto e atual
        $step = $this->flow(router()->current()->parameter('step'));

        // Carregar view
        $view_id = sprintf('%s.%s', $this->prefixViewName, $step->key);
        if (! view()->exists($view_id)) {
            error('View of step "%s" not found', $view_id);
        }

        $view = view($view_id);
        $view->with('steps', $this->model->steps);
        $view->with('step', $step);
        $view->with('model', $this->model);
        $view->with($this->viewParams);

        $view->with('step_url', function ($step, $method = 'get') {
            return $this->stepUrl($step, $method);
        });

        return $view;
    }
public function getSteps ( ) { // Carregar step do conexto e atual $ step = $ this -> flow ( router ( ) -> current ( ) -> parameter ( 'step' ) ) ; // Carregar view $ view_id = sprintf ( '%s.%s' , $ this -> prefixViewName , $ step -> key ) ; if ( ! view ( ) -> exists ( $ view_id ) ) { error ( 'View of step "%s" not found' , $ view_id ) ; } $ view = view ( $ view_id ) ; $ view -> with ( 'steps' , $ this -> model -> steps ) ; $ view -> with ( 'step' , $ step ) ; $ view -> with ( 'model' , $ this -> model ) ; $ view -> with ( $ this -> viewParams ) ; $ view -> with ( 'step_url' , function ( $ step , $ method = 'get' ) { return $ this -> stepUrl ( $ step , $ method ) ; } ) ; return $ view ; }
Retorna a view do step.
@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
Retorna a view do step .