My Homestead Vagrant virtual machine returns me 502 Bad Gateway instead of a Laravel Whoops error for some PHP errors (for example, a class was not found, some parsing errors, etc.).
Does anyone have a solution for the Whoops team for all PHP errors?
I could get the error message manually /var/log/nginx/<my_vhost>.app-error.log as follows:
2014/11/27 15:15:44 [error] 1300#0: *12 FastCGI sent in stderr: "PHP message: PHP Fatal error: <ERROR HERE> on line <LINE>
But this is very unpleasant for debugging ...
Homestead version: 0.2.0. Laravel Version: 4.2
Ifnot source share