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