njxqlus / filament-lightbox

Lightbox entry for Filament
MIT License
16 stars 8 forks source link

I got error ->gallery() does not exist #8

Closed davidtim closed 10 months ago

davidtim commented 10 months ago

What happened?

I got error Method Njxqlus\Filament\Components\Infolists\LightboxImageEntry::gallery does not exist.

How to reproduce the bug

LightboxImageEntry::make('id_photo')
    ->href(fn (?string $state): ?string => asset('storage/'.$state))
    ->gallery(fn ($record): string => $record->english_name),

Package Version

2.1

PHP Version

8.2

Laravel Version

10.41.0

Filament Version

3.2

Notes

No response

njxqlus commented 10 months ago

Thank you for mentioning it. I forgot to update the documentation. The method you looking for now is called slideGallery()