src/Xinix/Blade/BladeView.php
protected function render($template, $data = array())
    {
        $view        = null;
        $data        = array_merge_recursive($this->all(), $data);
        $data['app'] = $this->app;
        $template    = $this->resolve($template);


        if (! $template) {
            return;
        }

        if (! $this->layout) {
            $view = $this->make($template, $data);
        } else {
            $view = $this->layout->nest('content', $template, $data);
        }

        return $view;
    }
protected function render($template, $data = array())
    {
        $view        = null;
        $data        = array_merge_recursive($this->all(), $data);
        $data['app'] = $this->app;
        $template    = $this->resolve($template);


        if (! $template) {
            return;
        }

        if (! $this->layout) {
            $view = $this->make($template, $data);
        } else {
            $view = $this->layout->nest('content', $template, $data);
        }

        return $view;
    }
protected function render ( $ template , $ data = array ( ) ) { $ view = null ; $ data = array_merge_recursive ( $ this -> all ( ) , $ data ) ; $ data [ 'app' ] = $ this -> app ; $ template = $ this -> resolve ( $ template ) ; if ( ! $ template ) { return ; } if ( ! $ this -> layout ) { $ view = $ this -> make ( $ template , $ data ) ; } else { $ view = $ this -> layout -> nest ( 'content' , $ template , $ data ) ; } return $ view ; }
This method will output the rendered template content

@param string $template The path to the Blade template, relative to the Blade templates directory.

@return Illuminate\View\View
This method will output the rendered template content