I'm learning php/laravel so I don't completely know my way around yet. I've encountered this strange behaviour and I don't know how to solve it.
When I run my php server with php artisan serve
or valet start
and visit the page on my localhost, if my code has no errors then the page is loaded as expected.
However, if I purposely remove some important things like }
or ;
, and reload the page, rather than reporting an error, the page just keeps trying to load for what feels like minutes before timing out with a 504
.
Even if I correct the error and refresh the page, it will continue timing out with 504
.
I've discovered that if put the error back in and I run brew services restart mysql
, the page loads and reports the error to me as expected. But if I make a different error, the page 504
again.
If I run brew services stop mysql
, then error reporting always works as expected and I don't get 504
. But I want to have mysql
for learning php/laravel!
Hope that makes sense, really appreciate any help!