How do I add a route prefix to authentication routes exposed by Laravel JetStream? For example, I want to move the default /login
route to /api/login
(and similarly /register
and /logout
routes). I could do this Passport through a config option, but no such things appears to be there in JetStream.
there is a simple solution but its undocumented. you just have to go to your fortify.php config file and add a path. like:
return [
.
.
.
'path' => 'api',
// rest of your config
];