1 year ago

Restrict only single occurrence of a column using blade

Posted 1 year ago by markzimmer

I am joining 2 table with foreign_key values

Question, id,question,category_id

category id,cateogory

i want to display the results so that the category for the questions list only appears once for all the questions belonging to that category.But when i display that using foreach loop the category is repeating for all questions

like this

Category: C++ 1)is it a scripting language? 2)when was it invented

Category:Java 1)Who was the creator? 2)when was it invented?

Please sign in or create an account to participate in this conversation.