N
N
Nevershot2019-03-01 18:48:50
Laravel
Nevershot, 2019-03-01 18:48:50

How to properly display data from database in Laravel?

There is an array with a collection of products. How to display correctly in the template if they alternate like this in the layout:

<div content>
   <div c1>
         <div c2>"Название продута</div>
         <div c2>"Название продута</div>
         <div c2>"Название продута</div>
    </div c1>
    <div c1>
         <div c2>"Название продута</div>
         <div c2>"Название продута</div>
         <div c2>"Название продута</div>
    </div c1>
    <div c1>
         <div c2>"Название продута</div>
         <div c2>"Название продута</div>
         <div c2>"Название продута</div>
    </div c1>
</div content>

How to correctly display the Product Names from the collection in the blade template engine?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question