Created
April 4, 2016 20:48
-
-
Save ninjaparade/c34115fb8536810a576c20016cc1e130 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function parseBladeCode($string, array $args = []) | |
{ | |
$generated = $this->container['blade.compiler']->compileString($string); | |
ob_start(); | |
extract($args, EXTR_SKIP); | |
try { | |
eval('?>' . $generated); | |
} catch (\Exception $e) { | |
ob_get_clean(); | |
} | |
$content = ob_get_clean(); | |
return $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment