shouldReport($exception) && app()->bound('sentry')) { app('sentry')->captureException($exception); } parent::report($exception); } /** * Render an exception into an HTTP response. * * @param Request $request * @param Throwable $exception * @return Response * @throws Throwable */ public function render($request, Throwable $exception): Response { return parent::render($request, $exception); } }