Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2.33 KB

File metadata and controls

67 lines (42 loc) · 2.33 KB

Filament Table Filter Presets

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

Add the HasSavedTableFilters trait to any ListRecords page to get Save, Load, and Delete header actions. Filter presets are scoped per user and per resource, stored as JSON, and persisted via a single saved_table_filters table.

filters.png save-filters.png

Installation

You can install the package via composer:

composer require wotz/filament-table-filter-presets

You can publish and run the migrations with:

php artisan vendor:publish --tag="filament-table-filter-presets-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-table-filter-presets-config"

This is the contents of the published config file:

return [
    'administrator_model' => User::class,
];

Documentation

For the full documentation, check here.

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover any security-related issues, please email info@whoownsthezebra.be instead of using the issue tracker.

License

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