isUnhandled()) { $report->setUnhandled(true); $report->setSeverityReason([ 'type' => 'unhandledExceptionMiddleware', 'attributes' => ['framework' => 'Laravel'], ]); } $next($report); } }