wjbecker/filament-report-builder

使用 Laravel 模型构建 Filament 报告的构建器

0.0.1 2024-09-05 17:06 UTC

This package is auto-updated.

Last update: 2024-09-05 17:11:49 UTC


README

使用 Laravel Eloquent 模型动态报告构建器

安装

通过 composer 安装包

composer require wjbecker/filament-report-builder

发布并迁移迁移文件

php artisan vendor:publish --tag=filament-report-builder-migrations
php artisan migrate

Filament 导出操作

# Laravel 11 and higher
php artisan make:queue-batches-table
php artisan make:notifications-table
 
# Laravel 10
php artisan queue:batches-table
php artisan notifications:table

php artisan vendor:publish --tag=filament-actions-migrations
php artisan migrate

面板配置

将此插件包含在您的面板配置中并启用数据库通知

use Wjbecker\FilamentReportBuilder\FilamentReportBuilderPlugin;

return $panel
    // ...
    ->databaseNotifications()
    ->plugins([
        // ... Other Plugins
        FilamentReportBuilderPlugin::make()
    ])