Hi everyone, i would like to know, how to improve the speed of the local development setup on Windows. We currently use the basic "php artisan serve" command in combination with "npm run dev". We use the lastest version of Laravel, PHP and NPM/Node.js.
Are they any other tools/setup which would be better/faster to use? Would something like Laravel Sail be better?
Laravel Sail is a great option for local development on Windows. It provides a lightweight Docker environment that can be easily set up and configured. Here are the steps to get started with Laravel Sail:
@Snapey I would say almost everything. We are using a local installed MariaDB 10.6 as a Windows Service. When starting our local setup with "php artisan serve" and "npm run dev" it takes almost 30 seconds to show the Index page of our application.
Our SQL queries are highly optimized and are taking max 300-400ms to execute on the first load before caching.
@ilgenfritz I would say your problems are possibly related to networking (eg DNS), delays of that duration are likely to be network timeout related. I doubt sail or wamp etc would make much difference.
When you run an artisan command, I assume the response is immediate?
Check for any difference with the Windows machine on and off-line.
I assume you are opening your webpages with localhost or 127.0.0.1 ?
@Snapey Yes, artisan commands are instant. Opening webpages by "127.0.0.1:8000". I can see that our "app.scss"-file takes the most time to load by starting the "npm run dev" command.
It makes no difference when i'm online or offline.