protonemedia/inertiajs-tables-laravel-query-builder

Is selectFilter using wildcards?

grafxflow opened this issue · 2 comments

Is selectFilter using wildcards?

So for example if I want to use an id number such as 1 it also returns 1, 12, 21

Please read how Spatie's Query Builder works. This is not related to this package.

https://spatie.be/docs/laravel-query-builder/v5/features/filtering

Yes I have checked this and the solution is.

->allowedFilters([AllowedFilter::exact('model_id')