"Connection refused" means the Laravel server (php artisan serve) is not running.
- Right-click Laragon icon in system tray
- Click "Terminal"
- Or open Laragon app → Click "Terminal" button
cd "C:\Users\Windows10\Desktop\CEO\Vimstack\vimstack-karane"php artisan serveYou MUST see this output:
INFO Server running on [http://127.0.0.1:8000]
Press Ctrl+C to stop the server
IMPORTANT:
- ✅ Keep this terminal window OPEN
- ❌ Don't close it
- ❌ Don't press Ctrl+C
- The server runs in this window
Open a NEW terminal/CMD window:
cd "C:\Users\Windows10\Desktop\CEO\Vimstack\vimstack-karane"
npm run devKeep this running too!
Once both servers are running:
- Open browser
- Visit: http://localhost:8000
- Laragon Terminal opened
- Navigated to project directory
- Ran
php artisan serve - See "Server running on [http://127.0.0.1:8000]" message
- Terminal kept open (not closed)
- Vite server also running (
npm run dev) - Browser opened to http://localhost:8000
-
Check for errors in terminal - scroll up to see any error messages
-
Try different port:
php artisan serve --port=8001
Then visit: http://localhost:8001
-
Clear caches:
php artisan config:clear php artisan cache:clear
-
Verify PHP is working:
php --version php artisan --version
# Find what's using port 8000
netstat -ano | findstr :8000
# Use different port
php artisan serve --port=8001Terminal 1 (Laravel):
php artisan serveTerminal 2 (Vite):
npm run devBoth terminals must stay open!
The server must be running for the browser to connect. Start it now!