Replies: 2 comments
-
Just realised that the EntryModel returned by $entry = Entry::query()
->where('collection', 'items')
->where('slug', $slug)
->first() Then I am able to call |
Beta Was this translation helpful? Give feedback.
-
If you're only seeing an array of filenames, maybe you got rid of or renamed the blueprint field? The data would remain, but since there's no corresponding blueprint field it wouldn't know to convert the filenames to assets. |
Beta Was this translation helpful? Give feedback.
-
Apologies if this has been answered before, I couldn't find an answer here or in the docs.
I'm using the Eloquent driver, and Blade views.
I've got an entry that contains some assets for an image gallery.
I'm retrieving it by slug in a Laravel controller
When I
dd($entry->image_gallery)
I getHow can I retrieve the "full" asset fields, with objects that have the permalink, alt attributes, etc?
Beta Was this translation helpful? Give feedback.
All reactions