File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments