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.
2 parents 0a9af99 + 9a9fd4d commit 4f0e1efCopy full SHA for 4f0e1ef
src/ServiceProvider.php
@@ -7,6 +7,7 @@
7
use Illuminate\Support\Collection;
8
use Illuminate\Contracts\Http\Kernel;
9
use Illuminate\Support\Facades\Blade;
10
+use Illuminate\Support\Facades\Config;
11
use Illuminate\Support\Facades\Session;
12
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
13
@@ -51,7 +52,10 @@ protected function registerRouterMacro()
51
52
53
protected function registerMiddleware()
54
{
- $this->app[Kernel::class]->pushMiddleware(Middleware::class);
55
+ $this->app[Kernel::class]->appendMiddlewareToGroup(
56
+ Config::get('inertia.middleware_group', 'web'),
57
+ Middleware::class
58
+ );
59
}
60
61
protected function shareValidationErrors()
0 commit comments