hugobachmann / filament-modal
为 Filament 提供的简单模态,支持 Livewire 和 Alpine.js
dev-main
2024-02-05 10:14 UTC
Requires
- php: ^8.1
- filament/filament: ^3.0
- illuminate/contracts: ^10.0
- livewire/livewire: ^3.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
This package is auto-updated.
Last update: 2024-09-05 11:33:04 UTC
README
安装
在 composer.json 文件中将包添加到您的项目中
"repositories": [ { "type": "path", "url": "../packages/filament-modal" } ]
使用 composer 安装包
composer require hugobachmann/filament-modal
发布迁移
php artisan vendor:publish --provider="Hugobachmann\FilamentModal\ModalServiceProvider" --tag="migrations"
在 AdminPanelProvider.php 文件中将插件添加到 Filament
->plugins([ new FilamentModalPlugin(), ])
在视图中显示模态框
<livewire:filament-modal::modal :modal-id="{{ $modalId }}"/>