public function render()
    {
        Merchant::script($this->script());

        view()->share([
            'path'           => $this->path,
            'keyName'        => $this->model->getKeyName(),
            'branchView'     => $this->view['branch'],
            'branchCallback' => $this->branchCallback,
        ]);

        return view($this->view['tree'], $this->variables())->render();
    }
public function render()
    {
        Merchant::script($this->script());

        view()->share([
            'path'           => $this->path,
            'keyName'        => $this->model->getKeyName(),
            'branchView'     => $this->view['branch'],
            'branchCallback' => $this->branchCallback,
        ]);

        return view($this->view['tree'], $this->variables())->render();
    }
public function render ( ) { Merchant :: script ( $ this -> script ( ) ) ; view ( ) -> share ( [ 'path' => $ this -> path , 'keyName' => $ this -> model -> getKeyName ( ) , 'branchView' => $ this -> view [ 'branch' ] , 'branchCallback' => $ this -> branchCallback , ] ) ; return view ( $ this -> view [ 'tree' ] , $ this -> variables ( ) ) -> render ( ) ; }
Render a tree.

@return \Illuminate\Http\JsonResponse|string
Render a tree .