Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 2 years ago.
0

Are you wanting to write a query that gets all images from a table and the first image as well? Wouldn't this also return the "first" image twice?

What you have works, assuming you want to get all images and sort them by the sort_column. This will give you the FIRST image first and then the rest...

Jij kan het ook in het nederlands uitleggen

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Donny5300 donny5300 Joined 3 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.