Skip to content

backstagephp/table-filters

Repository files navigation

Backstage: Table Filters in Filament

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Nice to meet you, we're Backstage

Hi! We are a web development agency from Nijmegen in the Netherlands and we use Laravel for everything: advanced websites with a lot of bells and whitles and large web applications.

About the package

This package makes it easy to add filters to your Filament resource tables with minimal setup.

It allows you to define your table filters externally (file-based), helping you keep your code clean, organized, and easy to maintain.

Installation

You can install the package via composer:

composer require backstage/table-filters

Usage

In your resource, add the following method at the end of your table:

public static function table(Table $table): Table
{
    return $table
        ->withFileBasedFilters();
}

Now if you want to create a file-based Filament Table Filter, please execute the following command:

php artisan make:filament-filter

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published