muhammadkazimsadiq/filament-quick-edit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

muhammadkazimsadiq/filament-quick-edit

最新稳定版本:1.0.0

Composer 安装命令:

composer require muhammadkazimsadiq/filament-quick-edit

包简介

Filament plugin to quick-edit/add table rows using modals and filtering form fields.

README 文档

README

Latest Version on Packagist Total Downloads

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.

Installation

You can install the package via composer:

composer require muhammadkazimsadiq/filament-quick-edit

You can publish the translation files using:

php artisan vendor:publish --tag="filament-quick-edit-translations"

Usage

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.

Quick Edit Action

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(),
        ]);
}

Quick Add Action

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']),
    ];
}

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.

统计信息

  • 总下载量: 161
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固