In Laravel 4.2 the errors are caught and displayed on a "pretty" page, thanks to Whoops. The error is also logged in the configured log file (by default : storage/log/...).
You can be a very good developer but it happens sometimes, you forget a ;
, you misspell a PHP command, a function name (or whatever) in your code that will throw a "PHP Parse Error". If it happens in the "routes.php" or in any controller of Laravel 4, the pretty Whoops page won't display and the error won't be logged by Laravel. You have to find the error logged in the default PHP log file of your server.
To reproduce the bug, make a new line in your routes.php with only "let it bug", then save the file and then load the page. Nothing displays, right? The error is only reported in the default PHP log file of your server, right?
Is this behavior normal and does this happen to you as well? Is there a way to have it caught by Whoops in Laravel?