Download the PHP package degecko/laravel-nova-multifilter without Composer

On this page you can find all versions of the php package degecko/laravel-nova-multifilter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-nova-multifilter

Laravel Nova MultiFilter

Combine multiple filter columns into a single Nova filter panel. Supports select dropdowns, text search, date ranges, number ranges, bitwise flags, and custom filter handlers.

Installation

The service provider and assets are registered automatically via Laravel's package discovery.

Building Assets

During development:

Usage

In your Nova resource's filters() method:

Column Types

Select Dropdown

Pass an array of options. Use a flat array for value-only options, or an associative array for value => label pairs:

Text Search (LIKE)

Use a string pattern where # is replaced with the user's input:

The %w% pattern is special: it splits the input on non-alphanumeric characters and wraps each part with %, giving word-boundary-aware matching. For example, searching "John Doe" becomes %John%Doe%.

Date Range

Pass from/to keys to render two date pickers. Either bound is optional — leaving one empty creates an open-ended range:

Number Range

Add 'type' => 'range' to render number inputs instead of date pickers:

Bitwise Flags

For integer columns storing bitwise flags. Labels are auto-formatted from the keys:

Column Aliases

Prefix a column with a different display name using as:

The part before as is used for the query; the part after is displayed as the label.

Composing with Nova Filters

You can pass existing Nova filter instances directly as columns. Their options will be extracted and their apply() method will be called when the value changes:

Custom Handlers

Register custom handler callbacks for columns that need special query logic:

Defaults

Set default filter values that are applied on page load:

Query Tap

Apply a scope or constraint to all filtered queries via the tap parameter:

Debugging

Chain ->log() to output the raw SQL query to the Laravel log after filters are applied:

Full Example

How It Works

The MultiFilter renders all columns in a single horizontal filter panel. Each column type (select, text, date range, bitwise) gets the appropriate input widget. Changes are debounced (100ms) and applied as a combined filter value.

On the backend, each column's value is applied to the query based on its type:

License

MIT


All versions of laravel-nova-multifilter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/nova Version ^4.0|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package degecko/laravel-nova-multifilter contains the following files

Loading the files please wait ...