Fix for 5.3

This commit is contained in:
Matt Lantz committed 2016-10-21 16:21:02 -04:00
1 parent da8ed049cf
commit 2ef4c2e42c
1 file changed
+2 -1
+2 -1
View File
@@ -81,8 +81,9 @@ class HtmlServiceProvider extends ServiceProvider
if (in_array($method, $this->directives)) {
$snakeMethod = Str::snake($method);
$directive = strtolower($namespace).'_'.$snakeMethod;
Blade::directive($directive, function ($expression) use ($namespace, $method) {
return "<?php echo $namespace::$method$expression; ?>";
return "<?php echo $namespace::$method($expression); ?>";
});
}
}