F
Filament13mo ago
Azorky

Execute php code when clicking on link in custom column

I have a custom column:
`CopyUrlColumn::make('linkedin_url')->sortable()->searchable()
`CopyUrlColumn::make('linkedin_url')->sortable()->searchable()
This column contains an url and when the url is clicked, some js is executed that copies text to the user's clipboard. When this like is clicked, I would like to execute some php code as well because I need data from the session, how can I do this?
1 Reply
toeknee
toeknee13mo ago
Please do not double post, you posted about this last week I am sure. You should use ->action() and ->copyable() so no JS is needed and you can use native filament
Want results from more Discord servers?
Add your server