PHP code example of daikazu / filament-lightbox

1. Go to this page and download the library: Download daikazu/filament-lightbox 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/ */

    

daikazu / filament-lightbox example snippets


public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(LightBoxPlugin::make())
}

\Filament\Tables\Columns\ImageColumn::make('image')
                    ->lightbox()

\Filament\Tables\Columns\TextColumn::make('pdf_url')
                    ->lightbox("Your Url address"),

\Filament\Infolists\Components\ImageEntry::make('image')
                    ->lightbox()

\Filament\Infolists\Components\TextEntry::make('text')
                    ->lightbox("Your Url address")