Laravel collection Group by with json
I have an students table like: id name father_details 1 A {"father_email":"[email protected]", "father_name":"Pietro Hoeger"} 2 B {"father_email":"[email protected]", "father_name":"Jace Bayer"} 3 C {"father_email":"[email protected]", "father_name":"Pietro Hoeger"} 4 D {"father_email":"[email protected]", "father_name":"Pietro Hoeger"} I want to try group by father name from json: $students…