return [
CategoryTypeFilter::make('Category', 'category_id'),
DependentFilter::make('SubCategory', 'sub_category_id')
->dependentOf('category_id')
->withOptions(function (Request $request, $filters) {
return \App\Models\SubCategory::where('category_id', $filters['category_id'])
->pluck('title', 'id');
}),
];
I can see the Options call, when i select the category options, in fact the response is also correct in that call, but somehow the view of filter SubCategory is broken, not able to click and expand select option of SubCategory Filter, Category Filter is working fine though, but i think there is some issue in the view
return [
CategoryTypeFilter::make('Category', 'category_id'),
DependentFilter::make('SubCategory', 'sub_category_id')
->dependentOf('category_id')
->withOptions(function (Request $request, $filters) {
return \App\Models\SubCategory::where('category_id', $filters['category_id'])
->pluck('title', 'id');
}),
];
I can see the Options call, when i select the category options, in fact the response is also correct in that call, but somehow the view of filter SubCategory is broken, not able to click and expand select option of SubCategory Filter, Category Filter is working fine though, but i think there is some issue in the view