Add this to app/Http/Kernel.php -> $routeMiddleware: 'role' => \App\Http\Middleware\RoleMiddleware::class,