F
Filamentβ€’3mo ago
AmauryCid

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
mvenghaus
mvenghausβ€’3mo ago
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
AmauryCid
AmauryCidβ€’3mo ago
To 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.
mvenghaus
mvenghausβ€’3mo ago
then use a standard filter und don't show it πŸ™‚ https://discord.com/channels/883083792112300104/1215598841575899156 there i have something similar
AmauryCid
AmauryCidβ€’3mo ago
Thank you for your help!