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

alexoboy's avatar

Is a better way to stop using route cache to resolve the views?

I'm working with a laravel 9 jetstream inertia welcome web route get and when I add a new prop, I have to use the artisan command route:cache to view my changes. Is there another way to make this automatically?

0 likes
2 replies
Sinnbeck's avatar

Yes. The problem is that you have cached your routes. Clear the cache and only cache on production

php artisan route:clear
//or clear all caches
php artisan optimize:clear 

Please or to participate in this conversation.