Replies: 4 comments
-
How are you storing and retrieving |
Beta Was this translation helpful? Give feedback.
-
@zaidbarghouthi the pivot table has |
Beta Was this translation helpful? Give feedback.
-
Product and Attribute have a many-to-many relation. I found a workaround. So instead of calling it as a pivot column, I made a new relation with pivot and product table with one-to-many relation, which I don't like but seems working. For some reason, pivot columns are not translated. |
Beta Was this translation helpful? Give feedback.
-
I was troubleshooting a similar issue and found this discussion. I was using Many to Many (Polymorphic) relationship with Spatie Translatable pivot column. DB structure something similar:
I created a model for my "Taggables":
|
Beta Was this translation helpful? Give feedback.
-
I have many to many relation between product and attribute tables, and the pivot table has a value column which is translatable. ProductAttribute model is configured correctly, but for some reason, the value returns the JSON, not the translation.
Beta Was this translation helpful? Give feedback.
All reactions