public function fetch($template, $data = array())
    {
        $view = $this->render($template, $data);

        return ($view) ? $view->render() : '';
    }
public function fetch($template, $data = array())
    {
        $view = $this->render($template, $data);

        return ($view) ? $view->render() : '';
    }
public function fetch ( $ template , $ data = array ( ) ) { $ view = $ this -> render ( $ template , $ data ) ; return ( $ view ) ? $ view -> render ( ) : '' ; }
Return the contents of a rendered template file

@var string $template The template pathname, relative to the template base directory

@return Illuminate\View\View
Return the contents of a rendered template file