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 b874a83 commit 1e540d6Copy full SHA for 1e540d6
src/NativeServiceProvider.php
@@ -4,7 +4,7 @@
4
5
use Illuminate\Console\Application;
6
use Illuminate\Foundation\Application as Foundation;
7
-use Illuminate\Routing\Router;
+use Illuminate\Foundation\Http\Kernel;
8
use Illuminate\Support\Arr;
9
use Illuminate\Support\Facades\Artisan;
10
use Illuminate\Support\Facades\DB;
@@ -87,9 +87,9 @@ public function packageRegistered()
87
);
88
89
// Automatically prevent browser access
90
- $this->app->make(Router::class)->pushMiddlewareToGroup('web', [
+ $this->app->make(Kernel::class)->pushMiddleware(
91
PreventRegularBrowserAccess::class,
92
- ]);
+ );
93
94
Application::starting(function ($app) {
95
$app->resolveCommands([
0 commit comments