Answer the question
In order to leave comments, you need to log in
Why do brand IDs fly off after applying array_diff?
Hello, there is a list of brands in the filter, I form links for each brand like this namesite.com/cat/category-odin?brand-1,2, etc. I do it with manual concatenation
'brand' => implode(',', array_merge(explode(',', $brands), [$brand->id])
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