Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 980 Bytes

README.md

File metadata and controls

46 lines (33 loc) · 980 Bytes

Laravel Nova Range Filter

simple range filter for laravel nova v3+ Filter fields by numeric values

Install

composer require gekich/nova-range-filter

Create new filter using, nova:filter, for example:

php artisan nova:filter AgeFilter

Make your newly created class extend Gekich\NovaRangeFilter\NovaRangeFilter:

use Gekich\NovaRangeFilter\NovaRangeFilter;
...
class AgeFilter extends NovaRangeFilter 
{
//
}

Remove all code from newly created class AgeFilter, and leave only:

public $name = 'Age filter';
public $column = 'age';

Where $column - column to be filtered $name - name of the filter.

Usage

Filter is ready to use. You can apply this filter to any float/integer fields

Example usage

Contributing

Feel free to suggest changes, ask for new features or fix bugs yourself.

This is my first open source package, hope it will be usefull for you.