Yea there's probably a better way to word that title, but I can't think of it at the moment. Thus Google was of no help because it doesn't speak confused-mind.
I am working further into "Project Flyer" tutorial, and am trying to adapt it's lessons to this school project (two more weeks of mayhem!).
Scenario:
We have a story table.
We have a story_photos table (just like in the Project flyer tutorial).
Our home page is pulling in the ten newest stories - the top two will be "featured" with it's photo shown.
You can see here the basic template:
104.236.229.176
I know there is a call something like "get with photos", but as we are using Dropzone to allow multiple file uploads, I only want to grab the latest photo (for now).
Right now we are populating our home page with:
story::take(10)->get()
Can someone help me understand what the code would look like to say "get ten stories with the first photo for each"?