hugobachmann/filament-modal

Simple modal for Filament with Livewire and Alpine.js

dev-main 2024-02-05 10:14 UTC

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 }}"/>