Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Media Gallery Laravel Package

ahmed-abdelrhman/filament-media-gallery

Filament infolist entry for Spatie Media Library collections: renders a responsive media grid with an Alpine.js fullscreen lightbox for images and proper PDF cards that open in a new tab. Type-aware, no extra dependencies, works with Filament 3–5.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Admin Panel UX Enhancement: Justify investing in a Filament-based admin dashboard for teams managing visual content (e.g., marketing, e-commerce, or creative agencies). This package directly addresses pain points in media previews, reducing onboarding time for non-technical users.
  • Roadmap Prioritization: Align with a content management sprint focused on improving authoring workflows. Highlight how this package enables lightbox/PDF support with minimal dev effort, accelerating feature delivery.
  • Build vs. Buy Decision: Buy for teams already using Filament + Spatie Media Library. Avoid reinventing lightbox/PDF handling when this package offers a zero-dependency, production-ready solution.
  • Use Cases:
    • Portfolio/Websites: Enable artists/photographers to manage galleries with fullscreen previews.
    • E-commerce: Streamline product image management in admin panels (e.g., lightbox for variant images).
    • Real Estate: Embed property photo galleries in listing workflows.
    • Document Management: Display PDFs (e.g., contracts, certificates) as clickable cards.
    • Education Platforms: Showcase course materials (images + PDFs) in instructor dashboards.

When to Consider This Package

  • Adopt if:

    • Your stack includes Filament (v3–5) + Spatie Media Library (v10+) + Laravel 10+.
    • You need lightbox support for images or PDF previews in admin panels.
    • Your team prioritizes low-maintenance solutions (zero external dependencies).
    • Media is stored in Spatie collections on models using HasMedia/InteractsWithMedia.
    • You want to reduce dev time for media display without sacrificing UX.
  • Look elsewhere if:

    • You’re not using Filament (this is a Filament-specific solution).
    • You need advanced media editing (e.g., cropping, filters) — consider TinyMCE, CKEditor, or Laravel Filemanager.
    • Your project uses older Laravel/Filament versions (requires Laravel 10+, Filament 3+).
    • You require video support (this package focuses on images/PDFs).
    • You need custom lightbox plugins (e.g., Fancybox, GLightbox) — this uses Alpine.js only.
    • Your media is stored in non-Spatie systems (e.g., AWS S3 Direct, custom uploads).

How to Pitch It (Stakeholders)

For Executives: "This package lets our content teams manage images and PDFs in Filament with a polished, interactive gallery—no extra tools or plugins. For example, a real estate agent can upload property photos and preview them fullscreen without leaving the admin panel. It’s a 2-week dev effort saved, with zero risk (MIT license, zero dependencies). Ideal for our [e-commerce/real estate/portfolio] roadmap, where visual assets drive user engagement and conversions. The ROI is immediate: faster content updates, fewer support tickets about broken media previews."

For Engineering: *"We can replace the clunky default SpatieMediaLibraryImageEntry in Filament with this in under an hour. Key advantages:

  • Lightbox: Alpine.js-powered, no external libraries.
  • PDF Support: Renders PDFs as clickable cards (opens in new tab).
  • Flexible: Works with related models (e.g., UserProfile media).
  • Zero Setup: Auto-discovered, no npm/composer bloat. Tradeoffs: No video support (scope later) or server-side pagination (collections are typically small). Example: Swap SpatieMediaLibraryImageEntry in ProductResource with this for instant UX improvement."*

For Design: "This gives us Tailwind-styled, dark-mode-compatible media grids with smooth lightbox transitions—no custom CSS needed. PDFs look like proper cards, not broken icons. The rounded() and size() options let us match our design system effortlessly. For example, we can make profile photos circular (rounded-full) while keeping galleries square (aspect-square). The dark mode support aligns with our Filament theme."

For Product Managers: *"This package reduces friction in content workflows by solving two critical UX gaps:

  1. Images aren’t clickable → Now includes a fullscreen lightbox.
  2. PDFs render as broken icons → Now opens in a new tab as a proper card. Impact: Faster content updates, happier editors, and fewer support requests. Prioritize this for any Filament panel where media management is a bottleneck."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony