Adds a text filter component for resources and lenses.

v1.0.1 2019-10-29 22:24 UTC

This package is auto-updated.

Last update: 2023-01-07 17:14:04 UTC


Latest Version on Packagist Total Downloads


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

composer require reedware/nova-text-filter


Create a new filter and extend the abstract text filter:


namespace App\Nova\Filters;

use Reedware\NovaTextFilter\TextFilter;

class MyFilter extends TextFilter
    * Apply the filter to the given query.
    * @param  \Illuminate\Http\Request  $request
    * @param  \Illuminate\Database\Eloquent\Builder  $query
    * @param  mixed  $value
    * @return \Illuminate\Database\Eloquent\Builder
    public function apply(Request $request, $query, $value)
        return $query->where('my_column', 'like', "{$value}%");