I have a object ($project) in Blade.
When I do a {{ var_dump($project) }} I get:
object(stdClass)[603]
public 'image_header' =>
array (size=1)
0 =>
object(stdClass)[610]
public 'img' => string 'amsterdam.jpg' (length=13)
When I try to acces this element in blade with:
{{ $project->image_header[0]->img }}
It keeps giving this error Undefined offset: 0. I am really pulling my hair out here!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community