Filament-SimpleLightBox icon indicating copy to clipboard operation
Filament-SimpleLightBox copied to clipboard

[Bug]: Cannot generate URL using closure function

Open arbet opened this issue 1 year ago • 1 comments

What happened?

I expected to be able to pass dynamically a URL and it would take it dynamically

How to reproduce the bug

Check this code


ImageColumn::make('thumbnail_path')
                    ->size(150)
                    ->label('Media')
                    ->simpleLightbox(fn (PublicInstagramPost $record) => asset('storage/'.$record->media_path)),

It gives this error

Object of class Closure could not be converted to string

I should be able to dynamically load the lightbox

Package Version

0.0.5

PHP Version

8.2.14

Laravel Version

10.40.0

Which operating systems does with happen with?

Linux

Notes

No response

arbet avatar Jan 16 '24 11:01 arbet

I am also having same issue

abbasmashaddy72 avatar Feb 15 '24 16:02 abbasmashaddy72

Same here

NicholasMartens avatar Jun 05 '24 15:06 NicholasMartens

same issue

maytham553 avatar Jun 11 '24 07:06 maytham553

same here

baraakhateeb avatar Jul 23 '24 13:07 baraakhateeb

see this help

https://github.com/solutionforest/Filament-SimpleLightBox/releases/tag/0.0.8

lam0819 avatar Aug 02 '24 16:08 lam0819

Issue still exist.

Jason6809 avatar Jul 24 '25 14:07 Jason6809