Replies: 1 comment 3 replies
-
Hi. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I'd like to propose the addition of a
hasJoin
method to theIlluminate\Database\Eloquent\Builder
class.This method would enhance query building by allowing developers to easily check if a join to a specific table already exists in the query.
Here's an example of the
hasJoin
method I've used in one of my projects, implemented as a macro:This macro adds a convenient hasJoin method to check if a join with a specific table exists in the query. It’s a practical solution I found useful in complex query scenarios.
I'm keen to hear your thoughts and suggestions for improvement or optimization.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions