lundi 19 juillet 2021

Laravel 5.8 blade, getting values from nested objects error

Description of the problem

I'm issuing some weird error while working with blade. while getting the data inside a dd(), it works just like it should be. when calling it without a dd() an error is raised that tells me that it can't find it in my object.

The code

In my blade file, This works just fine :


This doesn't :

<img src="" />

The error

Undefined property: stdClass::$image (View: /home/vagrant/code/xxxxxx/resources/views/resources.blade.php)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire