K
K
kdeit2017-09-01 15:52:24
Laravel
kdeit, 2017-09-01 15:52:24

Is it better to pass a collection or an array to a template?

What is better to pass to Blade: a collection or doing ->toArray() before calling the template?
Who does what? What is more productive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pushkarev, 2017-09-01
@AXP-dev

Send whatever you want. Blade can work with everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question