Support the ongoing development of Laravel.io →

messerli90

Joined 9 Feb 2014

Statistics

Threads 6
Replies 10
Solutions 2
Articles 0

Self referencing polymorphic relationship

So just wondering if this is possible (or even smart) before I dive in too quickly. I have three mod...

Likes Replies

Is it possible to query 'where' on eager loaded relationship without a join?

Is it possibly to make a WHERE query on a eager loaded relationship? Say my users table has a name,...

Likes Replies
Solved

Reusing code across similar tables

I am trying to plan out my DB Schema and want to keep it DRY. I plan to have multiple tables for pos...

Likes Replies

Selective join, trouble with duplicate results

What I'm trying to do is: Output results with a filter from a pivot table where 'posts' can have up...

Likes Replies
Solved

Dynamic 'where()' for a filter

I've looked around for a tutorial or a best practice for implementing a filter for results. I would...

Likes Replies
Solved
replied 7 years ago

Is it possible to query 'where' on eager loaded relationship without a join?

Bonus Update: I just realized that if I getXAttribute() I can then append this on my object and don'...

0 Likes
replied 7 years ago

Is it possible to query 'where' on eager loaded relationship without a join?

Actually, I think I solved it. I was looking in the wrong part of the documentation. This seems to w...

0 Likes
Solved
replied 8 years ago

Selective join, trouble with duplicate results

Alright I figured it out. Instead of trying to chain everything together into one I changed: $posts...

0 Likes
Solved
replied 8 years ago

Selective join, trouble with duplicate results

I'm now trying this: ->leftJoin(function($query) { if(Input::get('lookingfor'...

0 Likes
replied 8 years ago

Dynamic 'where()' for a filter

Like how? I was thinking like: ... ->where('ranks.id', '=', $rankID) ... If this would work, how...

0 Likes

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.

© 2022 Laravel.io - All rights reserved.