Try debugbar. https://github.com/barryvdh/laravel-debugbar
Laravel runs very slowly on Windows. (Solved)
Laravel Version: 11.31.0
PHP Version: 8.3.14
Database Driver & Version: MariaDB 11.4 on Windows 11
Description:
Laravel runs very slowly on Windows compared to WSL and standalone Ubuntu, and sometimes the following error occurs:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\Users\myuser\PhpstormProjects\myproject\vendor\symfony\finder\Iterator\SortableIterator.php on line 51
This problem only exists in the development environment and on Windows. When I run the same project on WSL or Standalone Ubuntu, there is no problem. Also, this problem does not occur in the server and production environment.
The php.ini values are the same in all three environments.
I did some searching and found similar errors related to iterators and it was said that changing the session driver would solve it. I also changed the SESSION_DRIVER and CACHE_STORE to Redis. But the problem still persists.
If it helps, I use Livewire and MaryUI.
Steps To Reproduce:
To be honest, I don't know exactly how to reproduce this problem. The project is nothing special and is a simple store. It has nothing more than Laravel built-in authentication system and a few CRUD and checkout operations.
Is there a way to find out exactly which part of the code this error occurs during execution?
The problem was solved by running the "php artisan optimize" command. Also to further increase speed, I added all the directories and processes related to IDE, PHP, MariaDB, and Memuari (Redis) to the Windows Defender exclusions
Please or to participate in this conversation.