jarektkaczyk / laravel-global-scope

Define Laravel Global Scopes easier.
http://softonsofa.com
MIT License
28 stars 3 forks source link

What function remove() is doing ? #3

Closed ghost closed 8 years ago

ghost commented 8 years ago

I don't know if i understood it right, but seems that the remove() function is removing ALL wheres from the query instead of only the where added for my specific scope.

jarektkaczyk commented 8 years ago

Which version of the framework?

ghost commented 8 years ago

Laravel 5.0

ghost commented 8 years ago

@jarektkaczyk , my doubt was: If calling a specific GlobalScope macro mapped on remove() would remove all previous queries or only that from this specific GlobalScope.

I made some tests and everything is working as expected. Congratulations for the package.