Search
Get Started
F
Filament
•
9mo ago
Florian
i am trying to add a Copy function to my table but i am not sure why it wont work
Solution
Are you using
https
https
? Clipboard API does not work on unsecure connections
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,392
Members
View on Discord
Was this page helpful?
Yes
No
F
Florian
OP
•
4/18/25, 12:15 PM
already thanks for your time
R
rhysleesdev
•
4/18/25, 5:13 PM
are there any errors
?
you can also try adding
:
F
Florian
OP
•
4/18/25, 7:26 PM
Oh i will try it later but no there arent any errors
Solution
D
Dennis Koch
•
4/20/25, 3:01 AM
Are you using
https
https
? Clipboard API does not work on unsecure connections
R
rhysleesdev
are there any errors? you can also try adding: ```php ->copyableState(fn ($...
F
Florian
OP
•
4/20/25, 1:03 PM
sorry for the late reply this doesnt work either
-
>copyableState
(fn
(
$record
)
: string
=
>
(string
)
$record
-
>id
)
D
Dennis Koch
Are you using `https`? Clipboard API does not work on unsecure connections
F
Florian
OP
•
4/20/25, 1:03 PM
i am running atm on my local machine and thats http
F
Florian
i am running atm on my local machine and thats http
D
Dennis Koch
•
4/20/25, 2:02 PM
Yeah that won
’t work
. You need a secure connection
. If you use Valet or herd that
’s easy to setup
D
Dennis Koch
Yeah that won’t work. You need a secure connection. If you use Valet or herd tha...
F
Florian
OP
•
4/20/25, 3:09 PM
i do use herd
F
Florian
i do use herd 😄
D
Dennis Koch
•
4/21/25, 12:21 AM
Then run herd secure on your app
F
Florian
OP
•
4/21/25, 12:06 PM
Okay thanks for the help
!
!
->
copyableState
(
fn
($record)
:
string
=> (
string
) $record
->
id)
->
copyableState
(
fn
($record)
:
string
=> (
string
) $record
->
id)