orderBy('produit')->orderBy('qualite')->orderBy('recolte') $cotations = CotationsData::select('produit','qualite','recolte', DB::raw("GROUP_CONCAT(echeance,'::',prix SEPARATOR '|@|') AS prices")) ->groupBy('produit') ->groupBy('qualite') ->groupBy('recolte') ->get(); return view('pro.dashboard.index',compact('cotations')); } }