CSRF (419), unmatched-route 404 and maintenance (503) errors are thrown before the web-group SetLocale middleware runs, so the custom error pages rendered in the default locale for EN users. Extract SetLocale::apply() (session-guarded, so it is safe pre-session) and call it from a withExceptions render hook that falls through to the normal renderer — the error views now honour the user's language where it is known. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Console/Commands | ||
| Events | ||
| Http | ||
| Jobs | ||
| Livewire | ||
| Models | ||
| Providers | ||
| Services | ||
| Support | ||