src/Breadcrumb.php
public function compile($template, $data = array())
    {
        $compiler = new BladeCompiler($this->files, 'theme');

        // Get blade compiler.
        $parsed = $compiler->compileString($template);

        ob_start() and extract($data, EXTR_SKIP);
        try {
            eval('?>'.$parsed);
        } catch (\Exception $e) {
            ob_end_clean(); throw $e;
        }
        $template = ob_get_contents();
        ob_end_clean();

        return $template;
    }
public function compile($template, $data = array())
    {
        $compiler = new BladeCompiler($this->files, 'theme');

        // Get blade compiler.
        $parsed = $compiler->compileString($template);

        ob_start() and extract($data, EXTR_SKIP);
        try {
            eval('?>'.$parsed);
        } catch (\Exception $e) {
            ob_end_clean(); throw $e;
        }
        $template = ob_get_contents();
        ob_end_clean();

        return $template;
    }
public function compile ( $ template , $ data = array ( ) ) { $ compiler = new BladeCompiler ( $ this -> files , 'theme' ) ; // Get blade compiler. $ parsed = $ compiler -> compileString ( $ template ) ; ob_start ( ) and extract ( $ data , EXTR_SKIP ) ; try { eval ( '?>' . $ parsed ) ; } catch ( \ Exception $ e ) { ob_end_clean ( ) ; throw $ e ; } $ template = ob_get_contents ( ) ; ob_end_clean ( ) ; return $ template ; }
Compile blade template to HTML.

@param  string $template
@param  array $data

@throws \Exception
@return string
Compile blade template to HTML .