Skip to content

[7.x] Adding "between" clauses for BelongsToMany pivot columns - #32364

Merged
taylorotwell merged 2 commits into
laravel:7.xfrom
judahnator:7.x
Apr 13, 2020
Merged

[7.x] Adding "between" clauses for BelongsToMany pivot columns#32364
taylorotwell merged 2 commits into
laravel:7.xfrom
judahnator:7.x

Conversation

@judahnator

Copy link
Copy Markdown
Contributor

Pretty short and simple. This adds the ability to add 'where between' query clauses to pivot columns.

More or less syntactic sugar, but it allows to more consistency between the normal "where" clauses and the "wherePivot" methods.

@GrahamCampbell GrahamCampbell changed the title Adding "between" clauses for BelongsToMany pivot columns [7.x] Adding "between" clauses for BelongsToMany pivot columns Apr 13, 2020
Comment thread src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php Outdated
Comment thread src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php Outdated
Comment thread src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php Outdated
Comment thread src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php Outdated
Comment thread src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php Outdated
@judahnator

Copy link
Copy Markdown
Contributor Author

Got all of those changes implemented. Let me know how it looks!

@taylorotwell
taylorotwell merged commit 7c33c97 into laravel:7.x Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants