PHPackages                             andrefelipe18/laradumps-filament - 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. andrefelipe18/laradumps-filament

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

andrefelipe18/laradumps-filament
================================

LaraDumps integration for Filament

v1.4.0(11mo ago)121401[5 PRs](https://github.com/andrefelipe18/laradumps-filament/pulls)MITPHPPHP ^8.2CI passing

Since Jun 6Pushed 4mo agoCompare

[ Source](https://github.com/andrefelipe18/laradumps-filament)[ Packagist](https://packagist.org/packages/andrefelipe18/laradumps-filament)[ Docs](https://github.com/andrefelipe18/laradumps-filament)[ GitHub Sponsors](https://github.com/andrelipe18)[ RSS](/packages/andrefelipe18-laradumps-filament/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (14)Used By (0)

LaraDumps Filament
==================

[](#laradumps-filament)

This package provides a simple way to integrate LaraDumps with Filament.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require --dev andrefelipe18/laradumps-filament
```

Once installed, you can use the `LaraDumpsPlugin` in your PanelProvider:

```
use LaraDumpsFilament\LaraDumpsPlugin;

class MyPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugins([
                LaraDumpsPlugin::make(),
            ]);
    }
}
```

Usage
-----

[](#usage)

The LaraDumps Filament package provides debugging capabilities for Filament components through the `ds()` method. This method is available on form fields, tables, and also provides JavaScript debugging capabilities.

> **Important:** The `ds()` method only works in local environment. In production, the method calls are safely ignored.

### 🔧 Form Fields Debugging

[](#-form-fields-debugging)

The `ds()` method can be applied to any Filament form field to automatically capture and send its state changes to LaraDumps.

#### Basic Usage

[](#basic-usage)

```
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;

TextInput::make('name')
    ->label('Full Name')
    ->required()
    ->ds(), // Debug field changes

Select::make('status')
    ->label('User Status')
    ->options([
        'active' => 'Active',
        'inactive' => 'Inactive',
    ])
    ->ds(onBlur: false, debounce: 0, color: 'green'),
```

#### Advanced Configuration

[](#advanced-configuration)

The `ds()` method accepts several parameters to customize its behavior:

```
->ds(
    bool $onBlur = true,         // Trigger on blur event (default: true)
    ?int $debounce = null,       // Debounce delay in milliseconds
    string $color = 'orange'     // LaraDumps color label (default: 'orange')
)
```

> **Important:** Always call `->ds()` at the end of the field definition chain to ensure it captures the final configuration.

### Attribute `DumpFormState`

[](#attribute-dumpformstate)

You can also use the `DumpFormState` attribute to automatically dump the form state when the form is submitted. This is useful for debugging the entire form state at once.

```
// Dumping Create/Edit Resource Pages
#[\LaraDumpsFilament\Attributes\DumpFormState]
class CreateUser extends CreateRecord
{
   // ...
}

// Dumping Custom Pages
#[\LaraDumpsFilament\Attributes\DumpFormState('customStatePath')]
class CustomPage extends Page
{
    public array $customStatePath = []; // You can define a custom state path if needed

    public function form(Form $form): Form
    {
        return $form
            ->statePath('customStatePath')
            ->schema([
                // ... other fields
            ]);
    }
}
```

> **Important:** The `DumpFormState` attribute only captures reactive fields (those defined with `->live()`). Non-reactive fields will not be included in the dump.

### 📊 Table Debugging

[](#-table-debugging)

The `ds()` method on Filament tables provides comprehensive debugging information about the table's configuration, query performance, and structure.

#### Basic Usage

[](#basic-usage-1)

```
use Filament\Tables\Table;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\SelectFilter;

public function table(Table $table): Table
{
    return $table
        ->columns([
            TextColumn::make('name')
                ->label('Name')
                ->sortable()
                ->searchable(),

            // ...
        ])
        ->filters([
            SelectFilter::make('status')
                ->options([
                    'active' => 'Active',
                    'inactive' => 'Inactive',
                ]),
        ])
        ->actions([
            // ... your actions
        ])
        ->ds(color: 'green'); // Debug table configuration and performance
}
```

### 🚀 JavaScript Debugging

[](#-javascript-debugging)

The package automatically injects LaraDumps JavaScript integration, allowing you to use the `$ds` magic method in your Blade templates and Alpine.js components.

#### Basic Usage

[](#basic-usage-2)

```

        Debug Message

```

Troubleshooting
---------------

[](#troubleshooting)

### Common Issues

[](#common-issues)

1. **Missing JavaScript debugging**: Verify that the plugin is registered in your Panel Provider.

### Debug Information Not Showing

[](#debug-information-not-showing)

Make sure:

- Your application is running in local environment (`APP_ENV=local`)
- The plugin is registered in your Panel Provider

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance66

Regular maintenance activity

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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

Every ~1 days

Total

5

Last Release

335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79f7d53b4eb8f6678d6738e1a61b868fdc8d6638383b4fff25bf0e42b062fae0?d=identicon)[André Domingues](/maintainers/Andr%C3%A9%20Domingues)

---

Top Contributors

[![andrefelipe18](https://avatars.githubusercontent.com/u/96439642?v=4)](https://github.com/andrefelipe18 "andrefelipe18 (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

filamentfilamentphplaradumpslaravellaravelfilamentlaradumps

###  Code Quality

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/andrefelipe18-laradumps-filament/health.svg)

```
[![Health](https://phpackages.com/badges/andrefelipe18-laradumps-filament/health.svg)](https://phpackages.com/packages/andrefelipe18-laradumps-filament)
```

###  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)[swisnl/filament-backgrounds

Beautiful backgrounds for Filament auth pages

54149.2k6](/packages/swisnl-filament-backgrounds)[tapp/filament-google-autocomplete-field

Filament plugin that provides a Google Autocomplete field

3098.1k](/packages/tapp-filament-google-autocomplete-field)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)

PHPackages © 2026

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