Blade: how to get path for image asset? #6268
spaceageliving
started this conversation in
General
Replies: 1 comment 9 replies
-
Hey @spaceageliving, Use the So it should look something like this: {{ $page->hero_image->url }} More on this in the docs. Hope that helps :) |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the correct way to retrieve the path for an image asset in a blade template? The image asset is injected into the view as I can dump it and see it in debugbar, but I cannot for the life of me get the path of the image in my blade template.
Beta Was this translation helpful? Give feedback.
All reactions