'Laravel keeps reloading and nothing comes up

After I type php artisan serve in my terminal, laravel development server start : http://127.0.0.1:8000

But when I do reload in my browser, it keeps loading and doesn't show any error

And again this happens to all my project I have.

I don't know what's going on



Solution 1:[1]

I had the same problem and I solved it with php artisan config:cache and then restart your server with php artisan serve

Solution 2:[2]

you can change laravel port: php artisan serve --port=8080

Solution 3:[3]

I have the same Problime and i solved its write: php -S 0.0.0.0:8000 and will show firewall click on allow and will work note example #6

Solution 4:[4]

maybe your problem some file that crash on your project for that run this commend

php artisan config:cache // clear config cache
php artisan config:clear // clear config cache
php artisan cache:clear // clear cache
php artisan optimize  // To reoptimize the class loader
php artisan route:cache // clear route cache
php artisan view:clear // clear view cache

or may port 8000 reserved by other program for that use this commend to change port

php artisan serve --port=1000
//then type http://127.0.0.1:1000/ on your browser.

Solution 5:[5]

I've had the same issue, and later only I figured out my virus guard is the reason, to figure out I've spend almost a day. if non of the above solution worked for you please check by disabling your virus guard

Solution 6:[6]

Inspect the element and see if there's any error in console

Solution 7:[7]

I had this same problem. I spent hours trying to solve it. Finally, I installed a new Laravel project (versions 8 & 9) and could not pull it up.

Clear your browser cache. Try another browser and see if it pulls up.

Solution 8:[8]

Try http://localhost:8000

You are missing a 0 in the port number. If that doesn't work, try running 'ping localhost:8000' and post back the results.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Folaranmi Jesutofunmi
Solution 2 vahid
Solution 3 mhmt
Solution 4
Solution 5 Ruzaik Nazeer
Solution 6 ccek
Solution 7 Karl Hill
Solution 8 Polaris