Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Antonella's avatar

put links in a nova field

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(),
0 likes
3 replies
bugsysha's avatar

Have you tried?

Text::make('URL', function () {
            return '<a href="' . $this->nameOfTheField . '">URL Card</a>';
        })
            ->asHtml(),
1 like

Please or to participate in this conversation.