- What is solution-forest/filament-simplelightbox used for?
- It is a Filament plugin that adds SimpleLightbox image galleries and previews to admin panels. The package overview also describes preview support for PDF and Office documents. It is intended for presentation-layer admin UI, not public sites or Laravel domain infrastructure.
- How do I install Filament SimpleLightbox in a Laravel app?
- Install the package with Composer using the solution-forest/filament-simplelightbox package name. Then register the plugin in your Filament panel provider and verify any asset publishing or CSS/JS loading steps in the README. Clear caches and test the panel after installation.
- Which Filament versions does filament-simplelightbox support?
- The provided overview does not list explicit Filament, Laravel, or PHP version constraints. Check the package composer.json and README for the supported Filament major version before installing. Pin the package version in Composer and test it against your target panel version.
- How do I register Filament SimpleLightbox in a panel provider?
- Registration is typically done in your Filament panel provider, usually inside the panel configuration method. Use the plugin class documented by the package and confirm the exact method name from its README. After registering, load the admin panel and check that the lightbox assets are present.
- Does Filament SimpleLightbox support PDF and Office document previews?
- Yes, the package description says it supports previewing Image, PDF, and Office documents within Filament. Actual rendering depends on browser support and how the file URL is served. Test representative PDF and Office files in your target panel before relying on it.
- Can Filament SimpleLightbox work with private disks, S3, or signed URLs?
- The overview does not document private disk, S3, or signed URL behavior. The lightbox needs a browser-accessible URL, so test local public files, private disks, S3 URLs, and expiring signed URLs during a proof of concept. Keep a fallback preview path if private files cannot be reached directly.
- Does Filament SimpleLightbox load JavaScript from a CDN?
- The technical evaluation flags the embedded JavaScript lightbox library as a risk and asks whether assets are bundled locally or loaded from a CDN. The provided overview does not confirm this. Inspect the package assets and browser network requests during testing, especially under production CSP headers.
- Is Filament SimpleLightbox suitable for production admin panels?
- It can be a reasonable optional admin UX enhancement when your application already uses a compatible Filament panel. Do not make it release-blocking; pin the version, test CSP and asset loading, and roll it out to internal admin users first. Low adoption signals mean you should be prepared to fork or replace it.
- How should I test Filament SimpleLightbox under a CSP?
- Run the plugin in a non-production panel with CSP headers similar to production. Use browser devtools to check for blocked scripts, styles, inline handlers, and mixed-content warnings. Test image, PDF, and Office previews from each storage type you use.
- What alternatives exist if Filament SimpleLightbox is abandoned or incompatible?
- Use Filament-native modals, Alpine.js, or an existing media preview component as a fallback. Lock-in is low because removal mainly involves Composer and plugin registration changes. Re-evaluate the plugin at each Filament major upgrade and keep documented removal steps.