Closed
Description
Laravel Version
v11.2.0
PHP Version
8.3
Database Driver & Version
Sqlite
Description
As stated in #50849 (comment) global scopes can currently not be removed from BelongsToMany relations, because the getGrammar()
is unnecessarily forwarded to the query builders toBase
method which directly applies the scopes.
Activity
tpetry commentedon Apr 6, 2024
@plumthedev can you have a look at this? Seems to be triggered by your change.
plumthedev commentedon Apr 6, 2024
Sure, I will take a look 👀
github-actions commentedon Apr 7, 2024
Thank you for reporting this issue!
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Thank you!
[11.x] Remove scopes from BelongsToMany relation (laravel#50945)
[11.x] Allow to remove scopes from BelongsToMany relation (laravel#50945
plumthedev commentedon Apr 7, 2024
@ccharz Thanks for your eagle eye 👏
I have fixed that - code is under review
[11.x] Allow to remove scopes from BelongsToMany relation (laravel#50945
[11.x] Allow to remove scopes from BelongsToMany relation (#50945) (#…