Filter Table by Querystring
Hi there! Any suggestion on how could I filter a table by a url querystring parameter...? Your help is appreciated.
5 Replies
hey .. if it's a filter .. then you should use the filter .. if it should be always true .. i think laravel's global scopes are good for that .. and you can also manipulate the query with $table->query(....callback
you can use
modifyQueryUsing()
method as like on documentation https://filamentphp.com/docs/3.x/tables/filters/query-builder#scoping-relationshipsTo be more precise, I intent to redirect to a resource with data in the querystring to filter a table on that resource. Sorry for not being specific before.
then use a standard filter und don't show it π
https://discord.com/channels/883083792112300104/1215598841575899156
there i have something similar
Thank you for your help!