barryvdh said:
Thanks! I used that, but i would like to learn how do it with Eloquent
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community