Skip to content

Commit

Permalink
Update JetstreamServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodekker authored Oct 14, 2020
1 parent 3fd86c1 commit be9ec21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JetstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Laravel\Jetstream;

use App\Http\Middleware\Inertia as InertiaMiddleware;
use App\Http\Middleware\HandleInertiaRequests;
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Route;
Expand Down Expand Up @@ -206,8 +206,8 @@ protected function bootInertia()
$kernel->appendMiddlewareToGroup('web', ShareInertiaData::class);
$kernel->appendToMiddlewarePriority(ShareInertiaData::class);

if (class_exists(InertiaMiddleware::class)) {
$kernel->appendToMiddlewarePriority(InertiaMiddleware::class);
if (class_exists(HandleInertiaRequests::class)) {
$kernel->appendToMiddlewarePriority(HandleInertiaRequests::class);
}
}
}

0 comments on commit be9ec21

Please sign in to comment.