Level 61
Have you tried?
Text::make('URL', function () {
return '<a href="' . $this->nameOfTheField . '">URL Card</a>';
})
->asHtml(),
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
in my db table i have text field with a url:
link : https://....
when I go to represent it with the Resource Nova I can get the field but it is not clickable, or so:
Text::make('Link'),
otherwise i found this solution but i don't know how to put link value in url:
Text::make('URL', function () {
return '<a href="Link">URL Card</a>';
})
->asHtml(),
Please or to participate in this conversation.