What would the Blade syntax be for retrieving the following from a query response? The data is eager loaded. Each image is linked to a separate table. How do you access an object within an object in Blade? Pretty new to Laravel. Thanks!
Once you pas them as data in your controller, inside your blade templates you should echo them as a objects:
{{ $images[0]->id }}
{{ $images[0]->host_image->path }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With