So just wondering if this is possible (or even smart) before I dive in too quickly. I have three mod...
Is it possibly to make a WHERE query on a eager loaded relationship? Say my users table has a name,...
I am trying to plan out my DB Schema and want to keep it DRY. I plan to have multiple tables for pos...
What I'm trying to do is: Output results with a filter from a pivot table where 'posts' can have up...
I've looked around for a tutorial or a best practice for implementing a filter for results. I would...
Bonus Update: I just realized that if I getXAttribute() I can then append this on my object and don'...
Actually, I think I solved it. I was looking in the wrong part of the documentation. This seems to w...
Alright I figured it out. Instead of trying to chain everything together into one I changed: $posts...
I'm now trying this: ->leftJoin(function($query) { if(Input::get('lookingfor'...
Like how? I was thinking like: ... ->where('ranks.id', '=', $rankID) ... If this would work, how...
The Laravel portal for problem solving, knowledge sharing and community building.
The community