Laravel server keep looping on 'Accepted ' , 'Closing'

Viewed 1017

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 e.g

  • changed port
  • Cleared cache
  • composer dump-autoload
  • Killed cli

This exact code was working fine yesterday.

1 Answers

I had same name for two routes (one get and one post). If you get the same error you should check your routes as well.

Related