0

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 ?

enter image description here

I hope that after creating a new route I no longer need to do php artisan optimize

1 Answer 1

2

Stop using php artisan optimize during development. It caches several things, including the routes. You can clear the route cache with php artisan route:clear, or undo all the optimize caching with php artisan optimize:clear.

optimize is 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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.