/nova-filter-card

Index filtering card.

Primary LanguagePHP

Laravel Nova Filter Card Package

Latest Version on Github Total Downloads Become a Patron!

  1. Installation
  2. Usage

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require dkulyk/nova-filter-card

Usage

You need to add card to resource with specified filter.

use DKulyk\Nova\FilterCard;
use App\Nova\Filters\StateFilter;

public function filters()
{
    return [
        new StateFilter(),
    ];
}

public function filters()
{
    return [
        // Other cards...,
        new FilterCard(new StateFilter()),
    ];
}