From 115c2b06bc26846eee937c4f90e3038bac7649e7 Mon Sep 17 00:00:00 2001 From: Felix <30987125+flxcn@users.noreply.github.com> Date: Fri, 29 Jul 2022 13:41:12 -0400 Subject: [PATCH] Update Kernel.php --- app/Http/Kernel.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index c3be254..6a9a2ea 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -63,5 +63,10 @@ class Kernel extends HttpKernel 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + + 'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class, + 'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class, + 'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class, + ]; }