id; $this->quoteLineRepository->create($lineData); } } return $quote; } catch (\Exception $e) { // Log the error Log::error('Error creating quote with lines: ' . $e->getMessage(), [ 'exception' => $e, 'data' => $data, ]); // Re-throw to trigger rollback throw $e; } }); } }