From 668555aff5e8ef8c7c868082197c9542f2c227d0 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 4 May 2023 00:04:21 +0200 Subject: [PATCH] Add CheckClientCredentials route middleware --- app/Http/Kernel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 9466778b..9335753b 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -3,6 +3,7 @@ namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; +use Laravel\Passport\Http\Middleware\CheckClientCredentials; class Kernel extends HttpKernel { @@ -64,5 +65,6 @@ class Kernel extends HttpKernel 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + 'client' => CheckClientCredentials::class, ]; }