Running into this odd little issue here with a ORM query. Let me first define how my models are stru...
I'm trying to order my data, by the "belongsTo" association. Model: Contact BelongsTo: Age...
K, got it working. This is the query: $data = Contact::whereHas('agency', function($q) use ($agency)...
Sure, here is the debug query: [2014-07-18 11:53:07] local.ERROR: select * from `contacts` where (se...
So I changed the query to the above, but noticed that in the debug query, the 2 parts of the query a...
With Edit 2, if I use the "with", I still need to define the condition that give me all co...
Thanks for clearing up my code snippet! I don't think the orWhere would help me much though. I need...
The Laravel portal for problem solving, knowledge sharing and community building.
The community