data-health / data-health-filament
A Filament interface for managing Data Health findings
Package info
github.com/data-health-php/data-health-filament
pkg:composer/data-health/data-health-filament
Requires
- php: ^8.3
- data-health/data-health: ^0.1.1
- filament/filament: ^5.0
Requires (Dev)
- larastan/larastan: ^3.9
- laravel/pint: ^1.29
- orchestra/testbench: ^10.0||^11.0
- pestphp/pest: ^4.6||^5.0
- pestphp/pest-plugin-laravel: ^4.1||^5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Data Health Filament
A Filament 5 interface for data-health/data-health.
It provides a Filament resource and dashboard widget for managing findings, as well as standalone Livewire tables that can be embedded in your application.
Documentation
For installation, usage, and configuration details, see the Data Health Filament documentation.
Requirements
- PHP 8.3 or newer
- Laravel 12 or 13
- Filament 5
data-health/data-health^0.1.1
Installation
Install the package with Composer:
composer require data-health/data-health-filament:^0.1
After installation, choose either the Panel Builder integration or the standalone components. You can also use both in the same application.
Quick start
Register the plugin in each Filament panel that should expose Data Health:
use DataHealth\Filament\DataHealthPlugin; use Filament\Panel; public function panel(Panel $panel): Panel { return $panel->plugin(DataHealthPlugin::make()->brandLogo()); }
Or render a standalone findings table in a Blade view without registering a Filament panel:
<livewire:data-health-filament::finding-records-table />
To show findings for one model:
<livewire:data-health-filament::model-findings-table :model="$record" />
Finding explanations
The record detail page displays the current CanExplain output: expected state,
observed values, whether the problem still applies, and the observation time.
Reading an explanation changes neither business data nor finding status. Missing
or failed explanations display an unavailable message; failures are logged.
Explanation fields are escaped as text and should contain only audience-appropriate data.
Findings implementing CanExplain also provide an Explain row action, including
in standalone Livewire tables. Opening the modal reads current facts without
running verification or resolution.
Configuration
Publish the optional configuration file:
php artisan vendor:publish --tag=data-health-filament-config
The package does not perform authorization checks. Protect panels and routes that expose Data Health with your application's authentication and authorization middleware.
Testing
composer test
License
The MIT License.