P
P
polzovatel_vue2020-08-11 20:23:02
Laravel
polzovatel_vue, 2020-08-11 20:23:02

How to automatically render data in blade?

Good afternoon. A question.
Let's say I get data, let's say from here . I don't know the data structure.
How can I automatically render this data through the blade? So that this data automatically gets into the div and into the table

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
netrox, 2020-08-11
@netrox

$data = json_decode((string) file_get_contents('https://www.cbr-xml-daily.ru/daily_json.js'), true);

return view('home', $data);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question