protonemedia / inertiajs-tables-laravel-query-builder

Inertia.js Tables for Laravel Query Builder
https://protone.media/en/blog/introducing-inertiajs-tables-a-datatables-like-package-for-laravel-query-builder
MIT License
435 stars 123 forks source link

Is selectFilter using wildcards? #102

Closed grafxflow closed 1 year ago

grafxflow commented 1 year ago

Is selectFilter using wildcards?

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

darkons commented 1 year ago

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

grafxflow commented 1 year ago

Yes I have checked this and the solution is.

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