E
E
Eduard Bazhenov2019-10-31 13:34:58
Laravel
Eduard Bazhenov, 2019-10-31 13:34:58

How to display values ​​with two keys in a view?

Hello!
There is a table in the database that stores values ​​with two key values ​​('width', 'height', 'price').
How can such a collection be processed so that it can be displayed in view as a matrix?
5dbab89e747c5493755359.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Wells, 2019-10-31
@kip_34

Group first by height, then everything inside each height by width.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question