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
<?php | |
// Only you need to add in your controller. | |
public function bladeCompile($value, array $args = array()) | |
{ | |
$generated = \Blade::compileString($value); | |
ob_start() and extract($args, EXTR_SKIP); | |
// We'll include the view contents for parsing within a catcher | |
// so we can avoid any WSOD errors. If an exception occurs we |