Answer the question
In order to leave comments, you need to log in
How to group data from Mysql table in Laravel 5.1?
I figured out the table relationships and everything works out well, but I stumbled on the banal (
How to make two-dimensional arrays from one table .. sorry (
Actually there is a simple table - house id, street, house number
You need to get a two-dimensional array
street house id
1 house
id 2
like this Is it better to do it using Laravel?
As I understand it, you need to make a selection of the entire table - will you get a collection and already work with it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question