Level 102
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
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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?
Please or to participate in this conversation.