cviebrock / eloquent-taggable

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

Combining scopes #90

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!

devguar commented 5 years ago

Hey guys, this will be merged? Thank you

cviebrock commented 5 years ago

Thanks! Will put out a new release shortly.

cviebrock commented 5 years ago

Version 3.5.1 has this feature now ... thanks!

devguar commented 5 years ago

Great! Thank you!!