Level 24
@foreach($arrays as $element)
{{ $element }}
@endforeach
I have an array that looks like this
array: {
0 => 'Title 1',
1 => 'Description 1'
}
The problem I'm having is when I do this in my blade file
@foreach($arrays as $array)
{{ $array[0] }}
@endforeach
I get this error
Trying to access array offset on value of type int
Please or to participate in this conversation.