From 57e7d3ba0a3f5c0c66c1c2041d2182beaa069566 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Wed, 18 Dec 2019 17:13:57 -0500 Subject: [PATCH] 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 --- routes/web.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/web.php b/routes/web.php index e08d461..1caf6a1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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; });