hugobachmann / filament-modal
Simple modal for Filament with Livewire and Alpine.js
Fund package maintenance!
Hugo Bachmann
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-05-05 10:48:12 UTC
README
Installation
Ajouter le package à votre projet dans le fichier composer.json
"repositories": [ { "type": "path", "url": "../packages/filament-modal" } ]
Installer le package avec composer
composer require hugobachmann/filament-modal
Publier les migrations
php artisan vendor:publish --provider="Hugobachmann\FilamentModal\ModalServiceProvider" --tag="migrations"
Ajouter le plugin à Filament dans le fichier AdminPanelProvider.php
->plugins([ new FilamentModalPlugin(), ])
Afficher une modal dans une vue
<livewire:filament-modal::modal :modal-id="{{ $modalId }}"/>