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:
parent
196e585c87
commit
57e7d3ba0a
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue