Manaus Posted December 3, 2014 Share Posted December 3, 2014 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 More sharing options...
Manaus Posted December 3, 2014 Author Share Posted December 3, 2014 Managed to do this $pages->get(1)->get("image")->get("name=myotherlogo.png")->url and even $pages->get(1)->image->get("name=myotherlogo.png")->url I guess it's the shortest version... 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now