authenticate(); if(!in_array($user->type, RoleTypes::ADMIN_ROLES)){ return response()->view('errors.503', [], 503); } } return $next($request); } }