My laravel app not working and when i run php artisan serve
it terminal looping through Accepted, Closing
[Mon Jan 10 12:00:34 2022] PHP 7.4.9 Development Server (http://127.0.0.1:8000) started
[Mon Jan 10 12:00:37 2022] 127.0.0.1:51825 Accepted
[Mon Jan 10 12:00:37 2022] 127.0.0.1:51826 Accepted
[Mon Jan 10 12:00:37 2022] 127.0.0.1:51826 Closing
[Mon Jan 10 12:00:38 2022] 127.0.0.1:51825 Closing
[Mon Jan 10 12:00:38 2022] 127.0.0.1:51827 Accepted
I have tried almost all solution on stack overflow eg
This exact code was working fine yesterday.
Apparently it happened because i had same name for two routes(one get and one post).If you getting same error you should check your routes as well.
thanks @Daedalus for suggestion
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.