json([ 'error' => false, 'data' => CustomerBillingProfile::payload(Customer::where('uuid', $uuid)->firstOrFail()), ]); } public function update(BillingProfileRequest $request, string $uuid): JsonResponse { return response()->json([ 'error' => false, 'message' => 'Đã lưu thông tin xuất hóa đơn', 'data' => CustomerBillingProfile::save(Customer::where('uuid', $uuid)->firstOrFail(), $request->validated()), ]); } }