File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,21 @@ public function boot()
7070 });
7171 }
7272
73- $ this ->registerBladeDirective ('widget ' , '$1<?php echo app("arrilot.widget")->run$2; ?> ' );
74- $ this ->registerBladeDirective ('async-widget ' , '$1<?php echo app("arrilot.async-widget")->run$2; ?> ' );
75- $ this ->registerBladeDirective ('asyncWidget ' , '$1<?php echo app("arrilot.async-widget")->run$2; ?> ' );
76- $ this ->registerBladeDirective ('widgetGroup ' , '$1<?php echo app("arrilot.widget-group-collection")->group$2->display(); ?> ' );
73+ Blade::directive ('widget ' , function ($ expression ){
74+ return "<?php echo app('arrilot.widget')->run {$ expression }; ?> " ;
75+ });
76+
77+ Blade::directive ('async-widget ' , function ($ expression ){
78+ return "<?php echo app('arrilot.async-widget')->run {$ expression }; ?> " ;
79+ });
80+
81+ Blade::directive ('asyncWidget ' , function ($ expression ){
82+ return "<?php echo app('arrilot.async-widget')->run {$ expression }; ?> " ;
83+ });
84+
85+ Blade::directive ('asyncWidget ' , function ($ expression ){
86+ return "<?php echo app('arrilot.arrilot.widget-group-collection')->group {$ expression }->display(); ?> " ;
87+ });
7788 }
7889
7990 /**
You can’t perform that action at this time.
0 commit comments