exception) { return response()->view('errors.500', ['stack' => $response->exception->getTraceAsString()], 500); } return $response; } }