Support the ongoing development of Laravel.io →
Laravel Jetstream Routing

Hello, I'm a PHP programmer but I'm starting in Laravel. I recently saw some videos on Youtube about Laravel with Jetstream and InertiaJs. I decided to install it and it worked. My question is about Jetstream: I saw that its routes are installed in the dependency that is in the vendor (laravel/jetstream) and I wanted to know if there is any possibility of me taking it from this folder and transferring it to Laravel's routes/web.php folder along with controllers and models, because I would like to centralize the application in the original laravel folder, I'm afraid of needing to change the routes within the vendor and when I update something, go back to the original version of jetstream. Maybe the question may be a bit "dumb", but I'm really starting with Laravel.

Last updated 3 years ago.
0
moderator

Hello @alissonacioli

I personally don't have any experience with Jetstream but if I check the source ( https://github.com/laravel/jetstream/blob/2.x/src/JetstreamServiceProvider.php#L154-L189 ) I see multiple parts that can be published. Maybe you can run php artisan vendor:publish and see if one of the options is helpful. If I see this line: https://github.com/laravel/jetstream/blob/2.x/src/JetstreamServiceProvider.php#L202 I suspect that a config jetstream.prefix or jetstream.path will solve your case.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.