Fix for 5.3
This commit is contained in:
1 parent
da8ed049cf
commit
2ef4c2e42c
1 file changed
+2
-1
@@ -81,8 +81,9 @@ class HtmlServiceProvider extends ServiceProvider
|
|||||||
if (in_array($method, $this->directives)) {
|
if (in_array($method, $this->directives)) {
|
||||||
$snakeMethod = Str::snake($method);
|
$snakeMethod = Str::snake($method);
|
||||||
$directive = strtolower($namespace).'_'.$snakeMethod;
|
$directive = strtolower($namespace).'_'.$snakeMethod;
|
||||||
|
|
||||||
Blade::directive($directive, function ($expression) use ($namespace, $method) {
|
Blade::directive($directive, function ($expression) use ($namespace, $method) {
|
||||||
return "<?php echo $namespace::$method$expression; ?>";
|
return "<?php echo $namespace::$method($expression); ?>";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user