PHP code example of solution-forest / filament-simplelightbox
1. Go to this page and download the library: Download solution-forest/filament-simplelightbox library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
solution-forest / filament-simplelightbox example snippets
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"),
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),