Let's say we have three models Class, Students and Studentinfo. Class and students are in One to Many and Sudents and studentinfo are in one to one. So while getting students from certain Class I get a list of data in an array. Now, what is the best way to get data from studentinfo from each student in the arrray? P.S.(I am trying to get these datas in json format.)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community