route()->parameter('provider'); if (! in_array($provider, config('auth.social.providers'))) { throw new NotFoundHttpException; } return $next($request); } }