Fix when blade call has no arguments
This commit is contained in:
parent
ef210651aa
commit
71712d445f
@ -27,16 +27,15 @@ class CustomBladeServiceProvider extends ServiceProvider
|
||||
|
||||
private function resolve(string $content,string $expression): string
|
||||
{
|
||||
if (str_contains($expression,','))
|
||||
if (str_contains($expression,',')) {
|
||||
[$type,$arguments] = explode(',',$expression,2);
|
||||
$arguments = explode('|',$arguments);
|
||||
|
||||
else {
|
||||
} else {
|
||||
$type = $expression;
|
||||
$arguments = '';
|
||||
$arguments = [];
|
||||
}
|
||||
|
||||
$arguments = explode('|',$arguments);
|
||||
|
||||
$return = collect();
|
||||
$urls = collect();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user