nemrutco / nova-global-filter

This package allows you to apply any of your existing Laravel Nova filters to your cards in Dashboards or Index and Detail view of your nova resources.
MIT License
39 stars 32 forks source link

Dependency Filter #27

Open riomigal opened 2 years ago

riomigal commented 2 years ago

Hi,

Would it be possible to make the filters dependent on other filters? So e.g. if the first filter has countries and the second has cities it will refresh the options in the city filter when changing the country?

ValentinGaudin commented 1 year ago

Hi, you can do by yourself, get the value from the request inside your options :


if ($request->has('filters')) {
    $filters = $request->string('filters');
     // Do your stuff
}