Skip to content
Advertisement

Attempt to read property “id” on integer

I am new in laravel and working on E-Commerce Project. Plz Help me!

I am trying to get data from the database but I can’t.

My function

JavaScript
JavaScript

// I want to get multiple records like SKU, Color, Size, etc

//Here this is a record that I can see using dd($attributes_data)

JavaScript

At this point, I think everything is fine

JavaScript
JavaScript

Advertisement

Answer

If I understood the purpose of your codes well You want to access a product + its attributes in the view

I tried to make your code a little cleaner and more understandable
(I hope I understand your question correctly so that my answer is useful for us)

JavaScript

view

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement