Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wim91's avatar

How to redirect fail authorization to a page other than the login page?

Could you tell me how I can change the authorization redirects in Laravel 12? Earlier versions had middleware and karnel files, but they're gone now. After an unsuccessful authorization, I'm redirected to the login page. I'd like to change this redirect to, say, the home page. How can I do this?

0 likes
1 reply

Please or to participate in this conversation.