Category : arraylist

I have been fighting with this all day and would like another set of eyes to maybe give me some insight. I’m not sure I am even approaching this the correct way. I have two arrays but these arrays have different number lists. I’am bulding an app with laravel. $naflr = array( 0 => "NA" ..

Read more

I am receiving the data from a form where I am trying to save the data to the database. While saving the first record is saved multiple times. return response()->json($request->all()); JSON { "product_combo_name":"asdfadsf", "product_values":"[{"product_data":{"id":1,"slug":"product-name","sku":"product-code","product_name":"Product Name","category_id":1,"subcategory_id":1,"previewImg":"http://localhost/EcommerceBackend/public//assets/images/product/thumb/Product Name.jpeg","hasVariants":false,"deleted_at":null,"created_at":"2020-09-17T07:17:42.000000Z","updated_at":"2020-09-17T10:54:24.000000Z"},"product_qty":"1","product_price":"100","product_tax":"18","hsn_code":"78877","product_line_total":"118.00"},{"product_data":{"id":1,"slug":"product-name","sku":"product-code","product_name":"Product Name","category_id":1,"subcategory_id":1,"previewImg":"http://localhost/EcommerceBackend/public//assets/images/product/thumb/Product Name.jpeg","hasVariants":false,"deleted_at":null,"created_at":"2020-09-17T07:17:42.000000Z","updated_at":"2020-09-17T10:54:24.000000Z"},"product_qty":"1","product_price":"100","product_tax":"18","hsn_code":"197797","product_line_total":"118.00"}]", "shipping_charges":"123", "total_price":"359.00", "combo_total_price":"124.18", "product_total_price":"236.00", "charge_breakup":"[{"name":"qty","qty":"1","per_unit_price":"1","tax":"18","tax_amount":"0.18","line_total_amount":"1.18"}]" } I am trying to save the product_data as individual value, but ..

Read more