nara014
4 weeks ago
109
2
General

laravel route was not detected after enabling php artisan optimize

Posted 4 weeks ago by nara014

hello, I want to report anomalies when using laravel, actually this happened in version 5 too.

So, when I finish installing laravel. i am trying to use artisan optimize php to try cleaning. Then I tried to write a route, it worked fine at first .. then when I edited this route, a problem occurred. At first I created this route with the GET method, then when I changed POST it didn't change automatically. but when I clear route cache its okay. What happened exactly?

this code and php artisan route:list --name="change-lang" before i change to POST method Screenshot from 2020-09-24 23-52-01 Screenshot from 2020-09-24 23-59-43

this code and php artisan route:list --name="change-lang" after i change to POST method Screenshot from 2020-09-25 00-01-36 nothing changes. I know with just a php artisan route: this cache can return to normal, but if it's not automatic it will make this even more difficult. so how to fix this? thank u

Please sign in or create an account to participate in this conversation.