Jump to content

Accessing one of the images in image field


Manaus
 Share

Recommended Posts

Hello,

I'm trying to access a file called 'myotherlogo.png' from a page, but I cannot.

Tried:

$pages->get(1)->image('name=myotherlogo.png')->url // method Page::image does not exist
$pages->get(1)->image->first->url // this works, but I don't need the first

Thanks!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...