info: Model: Spatie\MediaLibrary\Models\Media => Relation: model - You should add "with(model)" to eager-load this relation.
Hello,
I am use a custom html rendered for my responsives images.
My code :
```blade
````
I would like to access the media model to be able to display its name in the alt attribute but my code generates a package of sql requests.
How to correct this problem? I wonder if you do not need a pull request to add an eager loader on the Media model.
Cordially.
I solved the problem with a ->with('media.model') on the parent model.
I did not know this feature.
Most helpful comment
I solved the problem with a
->with('media.model')on the parent model.I did not know this feature.