When you are returning the view, you are sending the data in a variable you have named 'categories'. If you change $products to $categories, in your View, everything should display properly.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community