Now we can use two or more scopes in the same command. As described on Readme.md you can do this:
Model::withAnyTags('Apple,Banana')::withoutAnyTags('Cherry')->get();
For each scope Im using the command FUNCTION to create a unique alias. So we can combine how many scopes we want without ambiguous tables/columns error.
Thank you for helping to make this package better!
Please make sure you've read CONTRIBUTING.md
before submitting your pull request, and that you have:
[x] provided a rationale for your change (I try not to add features that are going to have a limited user-base)
Combining scopes to create complex queries.
Now we can use two or more scopes in the same command. As described on Readme.md you can do this:
Model::withAnyTags('Apple,Banana')::withoutAnyTags('Cherry')->get();
For each scope Im using the command FUNCTION to create a unique alias. So we can combine how many scopes we want without ambiguous tables/columns error.Thank you for helping to make this package better!
Please make sure you've read CONTRIBUTING.md before submitting your pull request, and that you have:
README.md
, etc.)Thank you!