Answer the question
In order to leave comments, you need to log in
Display only category name retrieved by $categories->where('category_id', $product->category_id)?
In the controller, I get all the categories, and pass the array to the view, where I actually have fields, each field has a category.
So I get for each field, its category
$categories->where('category_id', $product->category_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