예제 #1
0
 /**
  * Create a plain Blade matcher.
  *
  * @param string $function
  * @return string 
  * @static 
  */
 public static function createPlainMatcher($function)
 {
     return \Illuminate\View\Compilers\BladeCompiler::createPlainMatcher($function);
 }
예제 #2
0
 public function closePermission($value, Application $app, Compiler $blade)
 {
     $matcher = $blade->createPlainMatcher('endpermission');
     return preg_replace($matcher, '<?php endif; ?>', $value);
 }