Create a new alias to use on scopes to be able to combine many scopes. This way we can use the same scope more than once.
Like this:
// Find models with any one of the given tags
// i.e. everything tagged "Apple OR Banana".
// AND tagged "Cherry OR Durian".
// (returns Ids: 4, 6, 7, 8)
Model::withAnyTags('Apple,Banana')::withAnyTags('Cherry,Durian')->get();
//4 - Apple, Banana, Cherry
//6 - Apple, Durian
//7 - Banana, Durian
//8 - Apple, Banana, Durian
Create a new alias to use on scopes to be able to combine many scopes. This way we can use the same scope more than once.
Like this:
This is different than:
Please make sure you've read CONTRIBUTING.md before submitting your pull request, and that you have:
README.md
, etc.)Thank you!