We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 529aae4 commit e6adfadCopy full SHA for e6adfad
src/ServiceProvider.php
@@ -58,9 +58,11 @@ public function boot()
58
'prefix' => 'arrilot',
59
];
60
61
- $this->app['router']->group($routeConfig, function ($router) {
62
- $router->get('load-widget', 'WidgetController@showWidget');
63
- });
+ if (! $this->app->routesAreCached()) {
+ $this->app['router']->group($routeConfig, function ($router) {
+ $router->get('load-widget', 'WidgetController@showWidget');
64
+ });
65
+ }
66
67
$this->registerBladeDirective('widget', '$1<?php echo app("arrilot.widget")->run$2; ?>');
68
$this->registerBladeDirective('async-widget', '$1<?php echo app("arrilot.async-widget")->run$2; ?>');
0 commit comments