devpartners/typeahead-filter

A Laravel Nova select filter with typeahead.

v0.0.2 2021-07-07 09:23 UTC

This package is auto-updated.

Last update: 2021-11-07 09:56:40 UTC


README

This package provides an easy-to-setup searchable select filter for Laravel Nova resources.

Installation

Install via composer:

$ composer require devpartners/typeahead-filter

Using in Laravel Nova

After the package has been installed with Composer, simply create a new Nova filter or change an existing filter to use the typeahead-filter component. Refer to the Nova docs for help with creating a new filter.

namespace App\Nova\Filters;

use Illuminate\Http\Request;
use Laravel\Nova\Filters\Filter;

class IndustryFilter extends Filter
{
    /**
     * The filter's component.
     *
     * @var string
     */
    public $component = 'typeahead-filter';

Refresh your browser or navigate to your resource's index page to start using your typeahead select filter.

demo