New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

solution-forest/filament-simplelightbox

This is my package filament-simplelightbox
157,873 63
Install
composer require solution-forest/filament-simplelightbox
Latest Version:1.1.1
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:10
License:MIT
Last Updated:Oct 8, 2026
Links: GitHub  ·  Packagist
Maintainer: solutionforest

About Solution Forest

Solution Forest Web development agency based in Hong Kong. We help customers to solve their problems. We Love Open Sources.

We have built a collection of best-in-class products:

  • InspireCMS: A full-featured Laravel CMS with everything you need out of the box. Build smarter, ship faster with our complete content management solution.
  • Filaletter: Filaletter - Filament Newsletter Plugin
  • Website CMS Management: A hands-on Filament CMS plugin for those who prefer more manual control over their website content management.

Filament SimpleLightbox

Latest Version on Packagist Total Downloads

Description

Filament SimpleLightbox is a PHP package that provides a simple and lightweight solution for implementing a lightbox feature in your Filament admin panel. It allows you to easily preview Image, PDF and Office documents within your Filament.

Features

  • Integration with the fslightbox JavaScript library for the lightbox functionality.
  • Supports previewing PDF and Office documents. information
  • Easy installation and usage.

Installation

Filament Version Filament Simple Light Box Version
v3.x v0.x
v4.x v1.x
v5.x v1.x

You can install the package via composer:

composer require solution-forest/filament-simplelightbox

Publish the assets:

php artisan filament:assets
php artisan optimize

Usage

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(SimpleLightBoxPlugin::make())
}
Tables\Columns\ImageColumn::make('image')
                    ->simpleLightbox()
Tables\Columns\TextColumn::make('pdf_url')
                    ->simpleLightbox("Your Url address"),

You can pass parameter to generate url, also the url can be used as default value (defaultDisplayUrl default is true):

Tables\Columns\ImageColumn::make('image')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),
Tables\Columns\TextColumn::make('url')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),
InfoLists\Components\ImageEntry::make('image')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),
Tables\Columns\ImageColumn::make('image')
    ->simpleLightbox(fn ($record) =>  $record?->image ?? "Your Image Url address", defaultDisplayUrl: true),

Preview

https://github.com/solutionforest/Filament-SimpleLightBox/assets/68211972/8bd7b59f-d18b-4f58-911f-822f10cb879b

image_preview url_preview docx_preview pptx_preview

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

solution-forest/filament-panzoom

This is my package filament-panzoom

13,693 9
solutionforest/filamentloginscreen

This is my package filamentloginscreen

3,912 30
solution-forest/filament-field-group

Filament Field Group is a powerful Laravel package that enhances Filament's form...

2,728 30
solution-forest/filament-nestable-tree

A nestable drag-and-drop tree component for Filament v4 and v5. Supports Eloquen...

11,798 7
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701

Version History

Version Released PHP Laravel License
1.1.1 ^8.2 ^11.28|^12.0|^13.0 MIT
1.1.0 ^8.2 ^11.28|^12.0 MIT
1.0.0 ^8.2 >=10.0 MIT
0.0.11 ^8.1 >=10.0 MIT
0.0.10 ^8.1 ^10.0|^11.0 MIT
Pre-releases (1)
Version Released PHP Laravel License
1.0.0-beta.1 ^8.2 >=10.0 MIT