-2

I want to loop through the values and display it in blade template (Array contains of results inside elements and then the values to fetch.

enter image description here

Ircover
  • 2,376
  • 1
  • 20
  • 41

1 Answers1

1

In blade you should use blade's @foreach function:

@foreach($arr['result']['elements'] as $val)
    {{-- You ar in loop and write your html here --}}
@endforeach

Hope this helps you

Malkhazi Dartsmelidze
  • 4,346
  • 4
  • 16
  • 37