i am trying to add a Copy function to my table but i am not sure why it wont work

No description
No description
Solution:
Are you using https? Clipboard API does not work on unsecure connections
Jump to solution
9 Replies
Florian
FlorianOP2w ago
already thanks for your time 😄
rhysleesdev
rhysleesdev2w ago
are there any errors? you can also try adding:
->copyableState(fn ($record): string => (string) $record->id)
->copyableState(fn ($record): string => (string) $record->id)
Florian
FlorianOP2w ago
Oh i will try it later but no there arent any errors
Solution
Dennis Koch
Dennis Koch2w ago
Are you using https? Clipboard API does not work on unsecure connections
Florian
FlorianOP2w ago
sorry for the late reply this doesnt work either ->copyableState(fn ($record): string => (string) $record->id) i am running atm on my local machine and thats http
Dennis Koch
Dennis Koch2w ago
Yeah that won’t work. You need a secure connection. If you use Valet or herd that’s easy to setup
Florian
FlorianOP2w ago
i do use herd 😄
Dennis Koch
Dennis Koch2w ago
Then run herd secure on your app
Florian
FlorianOP2w ago
Okay thanks for the help!!

Did you find this page helpful?