marcoraddatz/filter-card

A Laravel Nova card.

Installs: 9 402

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 9

Language:JavaScript

v2.0.1 2024-03-14 12:24 UTC

This package is auto-updated.

Last update: 2024-04-14 12:42:51 UTC


README

Latest Version on Github Total Downloads Become a Patron!

This fork implements support for Nova 4. The work was originally done by ali-raza-saleem, but the PR did not get merged.

  1. Installation
  2. Usage

Installation

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

composer require marcoraddatz/filter-card

Usage

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()),
    ];
}