/** * @param \Exception $e * * @return \Symfony\Component\HttpFoundation\Response * * @throws \Exception */ public function getErrorResponse(\Exception $e) { if (config('app.debug')) { throw $e; } return parent::getErrorResponse($e); }