Laravel 5 and php display_errors
10 août 2017 par: Benoit BonnevilleLaravel 5 do not display php errors. Fatal, Warning and even Notice are hidden, and will result in a blank page.
Avoid the « blank page » syndrom
You have to update your environment to « testing ».
So please edit your « .env » file at the root of your project and add :
APP_ENV=testing
You may find some tips on varius internet forums about values « local » or « developpment », but if you have a look to Laravel Source code :
if (! $app->environment('testing')) {
ini_set('display_errors', 'Off');
}
https://github.com/laravel/framework/blob/5.4/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php
This is pretty explicit.