A
A
astaxov812020-02-18 11:00:17
Laravel
astaxov81, 2020-02-18 11:00:17

How to display dd() in view?

Hello.
Not so long ago I began to study Laravel, I do it according to the lessons and ran into one problem. I can’t display dd();in the view without breaking the layout. hello example:

How it should look

5e4b98de52f2b443214632.png

What did I get before the output of dd();

5e4b992603892310856255.png

What did I get after the output of dd();

5e4b993ca139d948628159.png

Tried various output variations: {{ dd($item) }}, @dd($item), @php dd($item) @endphp, to no avail. I can assume that dd(), at the end of the execution, kills further execution of the script ( die(1)).

But how did the author of the video manage to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2020-02-18
@astaxov81

Because the author of the lesson, the left heel tells me, uses not dd(), but dump().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question