Answer the question
In order to leave comments, you need to log in
Why is Laravel model's $casts converter not working?
Why is Laravel model's $casts converter not working?
Product characteristics in the Prodacts table in the properties field are stored in JSON format. To convert data to an array, a property is set in the Product model:
protected $casts = [
'properties' => 'array',
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question