Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot generate URL using closure function #7

Open
arbet opened this issue Jan 16, 2024 · 4 comments
Open

[Bug]: Cannot generate URL using closure function #7

arbet opened this issue Jan 16, 2024 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@arbet
Copy link

arbet commented Jan 16, 2024

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 arbet added the bug Something isn't working label Jan 16, 2024
@lam0819 lam0819 added enhancement New feature or request and removed bug Something isn't working labels Jan 17, 2024
@abbasmashaddy72
Copy link

I am also having same issue

@lam0819 lam0819 added the help wanted Extra attention is needed label May 9, 2024
@NicholasMartens
Copy link

Same here

@maytham553
Copy link

same issue

@baraakhateeb
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants