Skip to content

Commit b6eab84

Browse files
committed
Small fix in direcrives
1 parent e8d65bf commit b6eab84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function boot()
5959
$router->post('load-widget', 'WidgetController@showWidget');
6060
});
6161

62-
$this->registerBladeExtensions();
62+
$this->registerBladeDirectives();
6363
}
6464

6565
/**
@@ -73,9 +73,9 @@ public function provides()
7373
}
7474

7575
/**
76-
* Register blade extensions.
76+
* Register blade directives.
7777
*/
78-
protected function registerBladeExtensions()
78+
protected function registerBladeDirectives()
7979
{
8080
Blade::extend(function ($view) {
8181
$pattern = $this->createMatcher('widget');
@@ -86,7 +86,7 @@ protected function registerBladeExtensions()
8686
Blade::extend(function ($view) {
8787
$pattern = $this->createMatcher('async-widget');
8888

89-
return preg_replace($pattern, '$1<?php app("arrilot.async-widget")->run$2; ?>', $view);
89+
return preg_replace($pattern, '$1<?php echo app("arrilot.async-widget")->run$2; ?>', $view);
9090
});
9191

9292
Blade::extend(function ($view) {

0 commit comments

Comments
 (0)