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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners