Uuid::uuid4()->toString(), 'breadcrumbs' => DB::getQueryLog(), 'request' => app('request'), 'message' => Arr::get($exception, 'getMessage', $record['message']), 'from' => env('CONTAINER_NAME'), 'trace' => Arr::get($exception, 'getTraceAsString'), 'name' => Arr::get($exception, 'getName'), 'code' => Arr::get($exception, 'getCode'), 'file' => Arr::get($exception, 'getFile'), 'line' => Arr::get($exception, 'getLine'), 'user_id' => Auth::hasResolvedGuards() ? Auth::id() : null, 'created_at' => Carbon::now(), ]); } catch (Throwable $exception) { return $record; } } }