skip to Main Content

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

9

Answers


  1. 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.

    Login or Signup to reply.
  2. you can change laravel port:
    php artisan serve –port=8080

    Login or Signup to reply.
  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

    Login or Signup to reply.
  4. I had the same problem and I solved it with php artisan config:cache and then restart your server with php artisan serve

    Login or Signup to reply.
  5. I solved this by running this command instead of php artisan serve.

    php -S localhost:8000 -t public/
    

    Then try to run again in your browser localhost:8000

    Hope it helps, happy coding 🙂

    Login or Signup to reply.
  6. 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.
    
    Login or Signup to reply.
  7. 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

    Login or Signup to reply.
  8. Inspect the element and see if there’s any error in console

    Login or Signup to reply.
  9. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search