T
T
Taras Parashchuk2020-12-06 20:22:30
Laravel
Taras Parashchuk, 2020-12-06 20:22:30

How to pass array from controller to view in Laravel?

Hello.
I have a two dimensional array like:

$pricedata = array(array(1,2,3,4,5,6,7,8,9,0),
                         array(1,2,3,4,5,6,7,8,9,0),
                         array(1,2,3,4,5,6,7,8,9,0),
                         array(1,2,3,4,5,6,7,8,9,0),
                         array(1,2,3,4,5,6,7,8,9,0),
                         array(1,2,3,4,5,6,7,8,9,0));

How to pass it from the controller and display it in the blade template?

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