Support the ongoing development of →
Database Eloquent Architecture
Last updated 2 years ago.

barryvdh said:

Thanks! I used that, but i would like to learn how do it with Eloquent

Last updated 2 years ago.

I'm also interested if this query is even possible with Eloquent...

From "Code Bright":

With SQL, we can use a number of complex comparisons and set arithmatic to retrieve only the results that we require. Replicating all of this functionality with Eloquent would be a tremendous task, but fortunately, Eloquent has alternate methods for the most useful of queries. For all the bits that are missing we can use raw queries to provide SQL statements that will return Eloquent ORM result instances.

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.