From the snippets you've posted it does seem correct to me and it works with simple $builder->whe...
Maybe try to turn on logging of SQL queries and check if they are OK. Eloquent/Query builders are gr...
Now that I'm thinking about it - one could reverse the filter to exclude variables starting with und...
It's true that it can be dangerous and it will pass down the function arguments too (since they are...
I don't think the author was thinking about the global scopes / view composers but only about not ne...
The Laravel portal for problem solving, knowledge sharing and community building.
The community