PHPackages                             momenoor/filament-table-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. momenoor/filament-table-field

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

momenoor/filament-table-field
=============================

Editable table field for Filament Forms with relationship support

v1.0.0(1y ago)14MITPHPPHP ^8.1

Since Apr 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Momenoor/filament-table-field)[ Packagist](https://packagist.org/packages/momenoor/filament-table-field)[ Docs](https://github.com/momenoor/filament-table-field)[ RSS](/packages/momenoor-filament-table-field/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Filament Table Field
====================

[](#filament-table-field)

[![Latest Version](https://camo.githubusercontent.com/97bc53d1be0bb3598b2cbab6bd576bea1f65edda3b01754da561b3ea350c671d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6d656e6f6f722f66696c616d656e742d7461626c652d6669656c642e737667)](https://packagist.org/packages/momenoor/filament-table-field)

Filament Table Field
====================

[](#filament-table-field-1)

A powerful custom Laravel Filament form field that renders an interactive table to manage related records via `HasMany` or `BelongsToMany` relationships — directly within your form.

> Built for Filament v3 — no Blade components needed.

---

🚀 Features
----------

[](#-features)

- Inline editable table using Filament Tables API
- Modal-based Create/Edit/Delete actions
- Supports `HasMany` and `BelongsToMany` relationships
- Auto-syncs records after form submission
- Dynamic form schema and column config
- Lifecycle hooks:
    - `beforeCreateRecord()`
    - `beforeUpdateRecord()`
- Auto-injection of parent form data
- Configurable header actions and table display options
- Customizable empty state

---

📦 Installation
--------------

[](#-installation)

```
composer require momenoor/filament-table-field
```

Register the plugin (if not auto-discovered):

```
\Momenoor\FilamentTableField\FilamentTableFieldServiceProvider::class,
```

---

🔧 Usage
-------

[](#-usage)

```
use Momenoor\FilamentTableField\Forms\Components\TableField;

TableField::make('tasks')
    ->relationship('tasks')
    ->tableColumns([
        TextColumn::make('name'),
        TextColumn::make('status')->badge(),
    ])
    ->createFormSchema([
        TextInput::make('name')->required(),
        Select::make('status')->options([
            'new' => 'New',
            'in_progress' => 'In Progress',
            'done' => 'Done',
        ])->required(),
    ])
    ->beforeCreateRecord(fn ($parentState) => [
        'client_id' => $parentState['client_id'] ?? null,
    ])
    ->beforeUpdateRecord(fn ($record) => [
        'updated_by' => auth()->id(),
    ])
    ->heading('Task Assignments')
    ->defaultRecordDefaults([
        'status' => 'new'
    ])
    ->disableEdit(false)
    ->disableDelete(false);
```

---

⚙ API Reference
---------------

[](#-api-reference)

MethodDescription`relationship()`Set the Eloquent relationship name`tableColumns()`Define table columns (Filament `Columns`)`createFormSchema()`Define modal form schema for create/edit`defaultRecordDefaults()`Default values merged with form submission`beforeCreateRecord()`Hook for modifying data before creating a record`beforeUpdateRecord()`Hook for modifying data before updating a record`disableCreate()`Disable the Create action`disableEdit()`Disable the Edit action`disableDelete()`Disable the Delete action`heading()`Set table heading titleHooks receive:

- `data`: submitted form data for that row
- `parentState`: full parent form state
- `state`: current field state
- `record`: the parent model being edited
- `field`: the TableField instance

---

📚 License
---------

[](#-license)

MIT © Momen Noor

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance47

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

393d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df0ab9dbea2f8cb9d093bbd6cf9d8c8b6ce8609465b5c00b82c38e0b7a8e1ee1?d=identicon)[momenoor](/maintainers/momenoor)

---

Top Contributors

[![Momenoor](https://avatars.githubusercontent.com/u/5836882?v=4)](https://github.com/Momenoor "Momenoor (1 commits)")

---

Tags

laravelFormsfilamentrelation managertable-field

### Embed Badge

![Health badge](/badges/momenoor-filament-table-field/health.svg)

```
[![Health](https://phpackages.com/badges/momenoor-filament-table-field/health.svg)](https://phpackages.com/packages/momenoor-filament-table-field)
```

###  Alternatives

[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

124139.3k2](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

58289.3k3](/packages/creagia-filament-code-field)[defstudio/filament-searchable-input

A searchable autocomplete input for Filament forms

3212.4k](/packages/defstudio-filament-searchable-input)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[aymanalhattami/filament-context-menu

context menu (right click menu) for filament

9838.0k](/packages/aymanalhattami-filament-context-menu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
