print array in blade code example
Example 1: how to print array in laravel blade
@php
var_dump($arr);
@endphp
Example 2: how to print array in laravel blade
echo implode("\n",array_collapse($array));
Example 3: how to print array in laravel blade
@foreach ($watchFolder as $key => $value)
Key: {{ $key }}
Value: {{ $value }}
@endforeach
Example 4: how to print array in laravel blade
@foreach ($watchFolder as $w)
{{ $w->name }}
@endforeach