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

BobaFett's avatar

Change redirectTo after login

Looks like the only location to change where users are directed to after login is /Users/underwood/code/laravel/ap/spark/src/Http/Controllers/Auth/LoginControler.php Is it ok to change files in /spark/src/? Anyone have general guidelines on which files should be/should not be modified for Spark. thx

0 likes
2 replies
garethdaine's avatar

Hi @BobaFett ,

I came across this issue myself. There are two options.

You can catch the URI of the route in your routes.php file and perform a redirect.

BobaFett's avatar

and the second option . . . looks like something got lost during your reply.

yeah, I wish there was a config where we could set things like the redirect, app name Spark = , Kiosk = Dashboard, etc.

Please or to participate in this conversation.