waywardson's avatar

How to change /login and /register paths in Jetstream?

To be clear, when people hit the register route, I want the url they go to to be /signup and when they click the login route, I want the url to be /signin.

Using Inertia stack.

I've spent way too long trying to figure this one out. php artisan route:list is no help. There is nothing in JetstreamServiceProvider about it. Nothing in Vendors/Laravel about it that I can find. Nothing in Actions. There is nothing in any of the files containing 'register' or 'login' that does it. And deep Googling isn't turning up an answer either.

Modifying the other paths is doable via the above but not these two.

Any help would be greatly appreciated.

0 likes
5 replies
waywardson's avatar

@anilkumarthakur60 haha I did not search Vendors/Laravel/Fortify I guess, only Vendors/Laravel/Jetstream. That was an extremely easy thing to change once I had the proper file. Thank you!

Hopefully future Googlers find this thread.

jlrdw's avatar

@22289d you did publish fortify correct you did not change it in vendor?

waywardson's avatar

@jlrdw I had just changed them in Vendor but now I see I shouldn't do that as they'll get overwritten.

What's the best way to update those? I already have ignoreRoutes() on. Can I just copy that routes file to somewhere else? Or put them in routes/web?

Please or to participate in this conversation.