This fork implements support for Nova 4. The work was originally done by ali-raza-saleem, but the PR did not get merged.
You can install the package in to a Laravel app that uses Nova via composer:
composer require marcoraddatz/filter-card
You need to add card to resource with specified filter.
use AwesomeNova\Cards\FilterCard;
use App\Nova\Filters\StateFilter;
public function filters()
{
return [
new StateFilter(),
];
}
public function cards()
{
return [
// Other cards...,
new FilterCard(new StateFilter()),
];
}