shayd-r/filament-smart-export

Smart automatic export action for Filament that discovers models and relationships automatically

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/shayd-r/filament-smart-export

v2.1.3 2025-12-18 16:48 UTC

This package is auto-updated.

Last update: 2025-12-19 05:01:35 UTC


README

Automatic export action for Filament v4 that discovers your model structure and relationships.

Features

  • Auto-discovers models, columns, and relationships
  • Export to XLSX or CSV
  • Live preview of data
  • Multiple relationship support (HasMany, BelongsToMany)
  • Direct download (no storage needed)

Installation

composer require shayd-r/filament-smart-export

Usage

Bulk Action (for selected records)

use ShaydR\FilamentSmartExport\Actions\SmartExportBulkAction;

public static function table(Table $table): Table
{
    return $table
        ->bulkActions([
            SmartExportBulkAction::make(),
        ]);
}

Header Action (for all records)

use ShaydR\FilamentSmartExport\Actions\SmartExportHeaderAction;

public static function table(Table $table): Table
{
    return $table
        ->headerActions([
            SmartExportHeaderAction::make(),
        ]);
}

Version Compatibility

  • Filament v4: Use version ^2.0 (main branch)
  • Filament v3: Use version ^1.0 (filament-v3 branch)

Requirements

  • PHP 8.1+
  • Laravel 11+ / 12+
  • Filament 4.0+

License

MIT