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 af8b598 commit e1545e1Copy full SHA for e1545e1
src/ServiceProvider.php
@@ -61,6 +61,7 @@ public function boot()
61
$routeConfig = [
62
'namespace' => 'Arrilot\Widgets\Controllers',
63
'prefix' => 'arrilot',
64
+ 'middleware' => $this->app->config('laravel-widgets.route_middleware', [])
65
];
66
67
if (!$this->app->routesAreCached()) {
src/config/config.php
@@ -5,6 +5,11 @@
5
6
'use_jquery_for_ajax_calls' => false,
7
8
+ /*
9
+ * Set Ajax widget middleware
10
+ */
11
+ 'route_middleware' => [],
12
+
13
/*
14
* Relative path from the base directory to a regular widget stub.
15
*/
0 commit comments