cviebrock / eloquent-taggable

Easily add the ability to tag your Eloquent models in Laravel.
MIT License
559 stars 72 forks source link

Combining scopes #89

Closed devguar closed 5 years ago

devguar commented 5 years ago

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:

Thank you!