i have laravel issue, after create new route, laravel cant detect that, i always use php artisan:optimize after create new route url. What Should i do to fix this issue ?

I hope that after creating a new route I no longer need to do php artisan optimize
Stop using
php artisan optimizeduring development. It caches several things, including the routes. You can clear the route cache withphp artisan route:clear, or undo all the optimize caching withphp artisan optimize:clear.optimizeis good for production use (make it part of your deployment process), but will potentially cause you quite a bit of pain like this during local development.