scramble
scramble copied to clipboard
Include middleware from groups in attachAuthenticationException
- Modified
attachAuthenticationExceptionto account for middleware coming from middleware groups. - Manually expanded middleware groups to include group-specific middleware when checking for
authmiddleware. - Ensured that
AuthenticationExceptionis correctly added to the method's exceptions whenauthmiddleware is present in the route or its associated middleware groups.