This represents a big departure from the controller with traits approach used in previous versions and has caused some concern that the authentication process is no longer customizable. I used fortify in a project and want to redirect the user to a custom route, not on home as default. So unfortunately there is no option in Fortify documentation to do it.

Simply, we need to change only in the intended() and we can put here our own route as I did in the below code.

Edit the JetstreamServiceProvider orFortifyServiceProvider in your app\Providers folder; In the boot method, add a reference to your new response class.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners