Filament plugin to help users quickly add or edit records using modals by dynamically filtering the actual resource form fields. Sometimes forms are very long; this plugin lets you take a subset of the fields for quick actions.
You can install the package via composer:
composer require muhammadkazimsadiq/filament-quick-editYou can publish the translation files using:
php artisan vendor:publish --tag="filament-quick-edit-translations"You can use the QuickAddAction in your page headers or table header actions, and the QuickEditAction in your table row actions.
The plugin provides three dedicated modifier methods:
->selectFields(array $fields): Only keep the specified fields in the quick form.->excludeFields(array $fields): Exclude the specified fields from the quick form.->onlyRequiredFields(bool $condition = true): Automatically extract only the fields marked as required in the resource.
Use QuickEditAction::make() inside a Filament Table to quickly edit a record with limited fields:
use MuhammadKazimSadiq\FilamentQuickEdit\Actions\QuickEditAction;
public function table(Table $table): Table
{
return $table
->columns([
// ...
])
->actions([
QuickEditAction::make()
->selectFields(['name', 'description']),
// Or only required fields:
// QuickEditAction::make()->onlyRequiredFields(),
]);
}Use QuickAddAction::make() in a Filament Page header action or a Table header action to quickly add a new record using the modal:
use MuhammadKazimSadiq\FilamentQuickEdit\Actions\QuickAddAction;
protected function getHeaderActions(): array
{
return [
QuickAddAction::make()
->onlyRequiredFields()
->excludeFields(['status']),
];
}Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.