Custom action for clickable url column

I made a custom column that I'm using in my table:
CopyUrlColumn::make('linkedin_url')->sortable()->searchable(),


When a user clicks on this link, they are redirected to linkedin and a certain script is copied to their clipboard.
What I now want is, when a user clicks the link, something is saved in the database, so what I mean is that I want to execute some php code when the link is clicked. How can I do this?
image.png
Solution
This did the trick
image.png
Was this page helpful?