Download the PHP package devpartner-technologies/laravel-filament-gallery without Composer
On this page you can find all versions of the php package devpartner-technologies/laravel-filament-gallery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devpartner-technologies/laravel-filament-gallery
More information about devpartner-technologies/laravel-filament-gallery
Files in devpartner-technologies/laravel-filament-gallery
Package laravel-filament-gallery
Short Description Standalone Filament 4 Embeddable Gallery Manager
License MIT
Informations about the package laravel-filament-gallery
Filament Gallery Manager
A powerful standalone Laravel & Filament 4 package for managing image galleries, custom image resizing rules via Intervention Image v3, customizable JSON-based gallery settings, multi-language support, and seamless Wave theme integration.
Features
- Filament 4 Integration: Resource with inline actions, modular settings schema, and custom panel navigation options.
- Smart Image Processing: Auto-generated thumbnails and main image resizing using Intervention Image v3 with customizable crop modes (
aspect_ratio,crop_out,crop_in). - Interactive Lock/Unlock Logic: Prevents accidental modification of image parameters on existing galleries without persisting form changes prematurely.
- Cached Frontend Rendering: Global
gallery()helper function with automatic cache invalidation on gallery updates or media uploads. - Localization Ready: Native translation support for English (
en) and Hungarian (hu).
Requirements
- PHP:
^8.2 - Laravel:
^11.0or^12.0 - Filament:
^4.0 - Intervention Image:
^3.0
Installation
Install the package via Composer:
If developing locally using path repositories, ensure you run composer dump-autoload from your primary Laravel project root.
Database Migration
Publish and run the migrations:
Or run package migrations directly if registered in your provider:
Publishing Config, Assets & Translations
Publish the configuration file, view assets, and language files to customize defaults:
After adding or modifying language files, clear the application caches:
Admin Panel Registration
Register the FilamentGalleryPlugin inside your Filament Panel Provider (e.g., AdminPanelProvider.php):
Frontend Integration & Gallery Inclusion
The package registers a global gallery() helper function that renders galleries using Blade templates.
1. Basic Usage (Default Bootstrap Template)
Render a gallery by its slug:
2. Custom Theme / View Template
Pass a second parameter pointing to a custom Blade view or Wave theme namespace path:
3. Available Blade Template Variables
When creating custom gallery templates, the view receives two primary variables:
$gallery: TheGallerymodel instance ($gallery->title,$gallery->settings, etc.).$images: Ordered collection ofGalleryImagerecords.
Example Custom Template (_front_slider_gallery.blade.php):
Caching Configuration
To enable frontend gallery rendering cache, update config/filament-gallery.php:
Cache is automatically flushed whenever a gallery or its associated images are created, updated, reordered, or deleted.