Commit 57e7d3ba by Jonathan Reinink

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
1 parent 196e585c
Showing with 5 additions and 0 deletions
......@@ -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;
});
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!