Filament v3 Table Tricks: Deferred Loading &amp; Filters | Mohamed Said        [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://www.msaied.com) [ Home ](https://www.msaied.com) [ Projects ](https://www.msaied.com/projects) [ Articles  ](https://www.msaied.com/articles) [ Certificates ](https://www.msaied.com/certificates) [ Contact ](https://www.msaied.com#contact-section) 

       [  ](https://github.com/EG-Mohamed)       

 [ Home ](https://www.msaied.com) [ Projects ](https://www.msaied.com/projects) [ Articles ](https://www.msaied.com/articles) [ Certificates ](https://www.msaied.com/certificates) [ Contact ](https://www.msaied.com#contact-section) 

  [ home ](https://www.msaied.com)    [ articles ](https://www.msaied.com/articles)    Filament v3 Table Tricks: Deferred Loading, Live Search, and Custom Filter Forms        On this page       1. [  Why Default Table Behaviour Isn't Enough ](#why-default-table-behaviour-isnt-enough)
2. [  1. Deferred Table Loading ](#1-deferred-table-loading)
3. [  2. Live Search Across Relations ](#2-live-search-across-relations)
4. [  3. Custom Filter Forms with Dependent Selects ](#3-custom-filter-forms-with-dependent-selects)
5. [  Combining All Three ](#combining-all-three)
6. [  Takeaways ](#takeaways)

  ![Filament v3 Table Tricks: Deferred Loading, Live Search, and Custom Filter Forms](https://cdn.msaied.com/617/2c4c33f76e69e2d61f0b6cf2918a8ad2.png)

  #filament   #laravel   #livewire   #tables  

 Filament v3 Table Tricks: Deferred Loading, Live Search, and Custom Filter Forms 
==================================================================================

     1 Sep 2026      4 min read    ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said  

       Table of contents

1. [  01   Why Default Table Behaviour Isn't Enough  ](#why-default-table-behaviour-isnt-enough)
2. [  02   1. Deferred Table Loading  ](#1-deferred-table-loading)
3. [  03   2. Live Search Across Relations  ](#2-live-search-across-relations)
4. [  04   3. Custom Filter Forms with Dependent Selects  ](#3-custom-filter-forms-with-dependent-selects)
5. [  05   Combining All Three  ](#combining-all-three)
6. [  06   Takeaways  ](#takeaways)

 Why Default Table Behaviour Isn't Enough
----------------------------------------

Filament's `Table` component covers 80% of CRUD needs out of the box. The remaining 20% — tables with expensive joins, cross-relation search, and multi-step filter UIs — requires deliberate use of APIs that the docs mention but rarely demonstrate together. This article walks through three concrete patterns you can drop into a production resource today.

---

1. Deferred Table Loading
-------------------------

When a resource's base query involves several joins or subqueries, the initial page load blocks on that query. Filament v3 ships a `deferLoading()` method on the table that renders a skeleton immediately and fires the real query after hydration.

```php
public static function table(Table $table): Table
{
    return $table
        ->deferLoading()
        ->columns([
            Tables\Columns\TextColumn::make('name'),
            Tables\Columns\TextColumn::make('account.balance')
                ->money('usd')
                ->sortable(),
        ]);
}

```

The skeleton uses the column count and a configurable row count (`->deferLoading(rows: 8)`). Pair this with `->poll('30s')` only when you genuinely need live data — polling and deferred loading together mean every poll cycle re-shows the skeleton, which is jarring.

---

2. Live Search Across Relations
-------------------------------

The built-in `->searchable()` column modifier adds a `LIKE` clause on the column's database path. For relation columns (`account.name`) Filament generates a `whereHas` automatically — but only for a single level. For deeper or polymorphic relations you need `->searchable(query: ...)` .

```php
Tables\Columns\TextColumn::make('primary_contact_name')
    ->label('Primary Contact')
    ->searchable(
        query: function (Builder $query, string $search): Builder {
            return $query->whereHas(
                'contacts',
                fn (Builder $q) => $q
                    ->where('contacts.is_primary', true)
                    ->where(function (Builder $inner) use ($search) {
                        $inner->where('contacts.first_name', 'like', "%{$search}%")
                              ->orWhere('contacts.last_name', 'like', "%{$search}%");
                    })
            );
        }
    ),

```

The closure receives the full Eloquent builder so you can add any constraint. Keep the closure pure — avoid loading models inside it or you'll create N+1 issues during search debounce cycles.

---

3. Custom Filter Forms with Dependent Selects
---------------------------------------------

Filament filters accept a `form()` method that returns a schema of form components. This is where most tutorials stop. The trick is wiring reactive state between components so that selecting a `Region` narrows the `Country` options.

```php
use Filament\Tables\Filters\Filter;
use Filament\Forms\Components\Select;
use Filament\Forms\Get;

Filter::make('location')
    ->form([
        Select::make('region_id')
            ->label('Region')
            ->options(Region::pluck('name', 'id'))
            ->live()
            ->afterStateUpdated(fn (callable $set) => $set('country_id', null)),

        Select::make('country_id')
            ->label('Country')
            ->options(
                fn (Get $get) => Country::where('region_id', $get('region_id'))
                    ->pluck('name', 'id')
            )
            ->disabled(fn (Get $get): bool => blank($get('region_id'))),
    ])
    ->query(function (Builder $query, array $data): Builder {
        return $query
            ->when($data['region_id'], fn ($q, $v) => $q->where('region_id', $v))
            ->when($data['country_id'], fn ($q, $v) => $q->where('country_id', $v));
    }),

```

`->live()` on the first select triggers a Livewire round-trip that re-evaluates the second select's `options` closure. The `afterStateUpdated` reset prevents stale country IDs surviving a region change. The `->query()` closure only applies constraints when the values are non-null, so a partially filled filter still works.

---

Combining All Three
-------------------

These patterns compose cleanly. A table with `deferLoading()` + a live-search column + a dependent filter form will:

1. Render instantly with a skeleton.
2. Fire one initial query after hydration.
3. Re-query only on explicit search/filter interaction.

The result is a resource that feels fast even when the underlying query is complex.

---

Takeaways
---------

- Use `->deferLoading()` on any table whose base query exceeds ~50 ms; avoid pairing it with `->poll()`.
- Override `->searchable(query: ...)` whenever the default `whereHas` path is insufficient or polymorphic.
- Build dependent filter selects with `->live()`, `afterStateUpdated` resets, and `Get $get` closures — no custom Livewire component needed.
- Keep filter `->query()` closures conditional with `->when()` so partial filter state doesn't over-constrain results.
- Profile the generated SQL with `DB::listen` during development; Filament's query builder can produce surprising joins when sorting on relation columns.

 Found this useful?

          [  ](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.msaied.com%2Farticles%2Ffilament-v3-table-tricks-deferred-loading-live-search-and-custom-filter-forms&text=Filament+v3+Table+Tricks%3A+Deferred+Loading%2C+Live+Search%2C+and+Custom+Filter+Forms) [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.msaied.com%2Farticles%2Ffilament-v3-table-tricks-deferred-loading-live-search-and-custom-filter-forms) 

 Frequently Asked Questions 
----------------------------

  3 questions  

     Q01  Does `deferLoading()` affect SEO or server-side rendering?        Filament tables are rendered inside Livewire components, so they are not crawled by search engines regardless. `deferLoading()` has no SEO impact — it only changes when the Livewire component fires its initial data fetch after the page HTML is delivered. 

      Q02  Can I use the custom `searchable(query:)` closure alongside Filament's global search?        The `query:` closure on a column only affects the table's per-column search bar, not the global search. Global search uses the `getGlobalSearchResultsUsing` method on the resource class, which you configure separately. 

      Q03  How do I reset all dependent filter fields when the user clears the filter form?        Implement `-&gt;resetFiltersFormUsing()` on the table, or rely on Filament's built-in 'Reset filters' action which calls `$this-&gt;resetTableFiltersForm()` and clears all filter state, triggering a fresh query. 

  Continue reading

 More Articles 
---------------

 [ View all    ](https://www.msaied.com/articles) 

 [ ![Laravel New in 13: Features, Helpers, and Upgrade Notes](https://cdn.msaied.com/625/629cfac34ade7206a215809c0438c5ae.png) laravel php upgrade 

### Laravel New in 13: Features, Helpers, and Upgrade Notes

Laravel 13 ships with async-first primitives, tightened type contracts, and quality-of-life helpers that rewar...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 3 Sep 2026     3 min read  

  Read    

 ](https://www.msaied.com/articles/laravel-new-in-13-features-helpers-and-upgrade-notes) [ ![Statamic Sidecar: Edit Markdown Sites from the Control Panel Without Migration](https://cdn.msaied.com/624/6df15b406d700ea26fb98c6ad4779195.png) Statamic Markdown CMS 

### Statamic Sidecar: Edit Markdown Sites from the Control Panel Without Migration

Statamic's new Sidecar product lets you manage any static site generator's Markdown files through the Statamic...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 2 Sep 2026     3 min read  

  Read    

 ](https://www.msaied.com/articles/statamic-sidecar-edit-markdown-sites-from-the-control-panel-without-migration) [ ![Laravel Macro-Free Extensibility: Extending Eloquent Builder with Custom Query Objects](https://cdn.msaied.com/621/b0c176a363378658e83bb44ed379879b.png) laravel eloquent clean-architecture 

### Laravel Macro-Free Extensibility: Extending Eloquent Builder with Custom Query Objects

Skip global macros and reach for typed, testable query objects that encapsulate reusable Eloquent constraints...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 2 Sep 2026     1 min read  

  Read    

 ](https://www.msaied.com/articles/laravel-macro-free-extensibility-extending-eloquent-builder-with-custom-query-objects) 

   [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://www.msaied.com)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

Explore

- [Home](https://www.msaied.com)
- [Projects](https://www.msaied.com/projects)
- [Articles](https://www.msaied.com/articles)
- [Certificates](https://www.msaied.com/certificates)
- [Contact](https://www.msaied.com#contact-section)

Connect

- [   hello@msaied.com ](mailto:hello@msaied.com)
- [   +20 109 461 9204 ](tel:+201094619204)

© 2026 Mohamed Said. All rights reserved.

 [  ](https://github.com/EG-Mohamed) [  ](https://www.linkedin.com/in/msaiedm/) [  ](https://wa.me/201094619204) [  ](mailto:hello@msaied.com) [  ](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
