I am using Laravel 12 and facing an issue where the php artisan serve command takes too long to start. I am running XAMPP on Windows with PHP 8.2.12. When I run the command in the terminal, it hangs for several seconds (or even minutes) before starting the local server.
What I have tried so far:
- Clear cache
- Reset configurations using the following commands, but the issue persists.
Additional Information: PHP version: 8.2.12 (php -v)
Laravel version: 12.0.1 (php artisan --version)
I am not using WSL or any Windows virtual environment.
I have not tried running the server on a different port.
I have not checked if another process is using port 8000.
What could be causing this slowdown? Are there any settings in XAMPP or Laravel that I should change to make php artisan serve start faster? What other steps should I try to troubleshoot this issue?