Bercove's avatar

Laravel localhost:8000 keeps on loading without any error or proper output

Laravel on localhost:8000 It is not showing any error but it just continues to load.

Am using Windows 10 and Xampp. Is there any way that I can fix that without changing port.

Thanks in advance

0 likes
15 replies
Bercove's avatar

If you use localhost without the port it will redirect you to localhost/dashboard

RayC's avatar

Alternitivley you could use https://laragon.org/ as your local server and it will automatically setup domains like yourapp.oo in both the HOSTS and httpd.conf file whenever you create a new laravel app.

1 like
Bercove's avatar

Object not found

Laravel project are not in Xampp/htdocs

RayC's avatar

If they are not there. Share your actual setup. Using Xampp you would put your projects in the htdocs folder and serve them from that directory.

Have you started

php artisan serve

You need to do that to get to localhost:8000

Bercove's avatar

Yes of course I did it in my terminal

Laravel development server started: http://127.0.0.1:8000

Nothing else but in browser it keeps reloading

RayC's avatar

I don't personally use artisan serve. Have used Xampp and if it is running could be causing a conflict.

I would also try running

netstat -an

To see if anything else is running on port 8000 to find a conflict.

larp's avatar
larp
Best Answer
Level 1

Hello, try to use this command.

 D:\xampp\htdocs\your-app>php -S localhost:8000 -t public/

Then after, run again in your browser

  localhost:8000

Hope it helps :)

1 like
mrani's avatar

i am using mac and xampp i have same issue its taking long loading time and not open i have tried used php artisan serve , php artisan serve --port=8585 also php -S localhost:8000 please help me....

kamrankhan's avatar

i have problem in php artisan serve its run but if i like localhost/project_name than show me This site can’t be reached The connection was reset. and in command the css didnot load i was used npm install and npm run dev

Please or to participate in this conversation.