Solution Forest Web development agency based in Hong Kong. We help customers to solve their problems. We Love Open Soruces.
We have built a collection of best-in-class products:
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.
You can install the package via composer:
composer require solution-forest/filament-simplelightbox
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),
https://github.com/solutionforest/Filament-SimpleLightBox/assets/68211972/8bd7b59f-d18b-4f58-911f-822f10cb879b
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.