How to redirect to Another resource module with tableFilters parameter .
I have "Area resource" now i wan to go "User resource" with User resource tableFilters thats mean i want to check how many user in this Area.
3 Replies
This is my approach, hope you get the idea
@Vp
i solved this way. This way is right ?
Action::make('Packages')
->url(fn (Area $record): string => url(PackageResource::getUrl('index',['tableFilters[area_id][value]' => $record->id])))
->icon('heroicon-m-rectangle-stack'),
I cannot say whether it is correct or not, if it works for you then it's okay