Force debug mode for this endpoint in the demo environment

Thanks to @freekmurze for confirming this is safe, and won't expose any environment variables
This commit is contained in:
Jonathan Reinink 2019-12-18 17:13:57 -05:00
parent 196e585c87
commit 57e7d3ba0a
1 changed files with 5 additions and 0 deletions

View File

@ -54,5 +54,10 @@ Route::get('reports')->name('reports')->uses('ReportsController')->middleware('a
// 500 error
Route::get('500', function () {
// Force debug mode for this endpoint in the demo environment
if (App::environment('demo')) {
Config::set('app.debug', true);
}
echo $fail;
});