1. Go to this page and download the library: Download njxqlus/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/ */
njxqlus / filament-lightbox example snippets
use Njxqlus\Filament\Components\Infolists\LightboxImageEntry;
LightboxImageEntry::make('foo')
->href('https://biati-digital.github.io/glightbox/demo/img/large/gm2.jpg')
use Njxqlus\Filament\Components\Infolists\LightboxImageEntry;
LightboxImageEntry::make('foo')
->image('https://biati-digital.github.io/glightbox/demo/img/small/gm2.jpg')
->href('https://biati-digital.github.io/glightbox/demo/img/large/gm2.jpg')