-
Description:I would like to display an URL field display the name of the field instead of the custom html: If you replace Detailed steps to reproduce the issue on a fresh Nova installation:URL::make('test URL', function () {
return '<a href="https://laravel.com">laravel.com</a>';
})->asHtml(),
Text::make('test TEXT', function () {
return '<a href="https://laravel.com">laravel.com</a>';
})->asHtml(), |
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Oct 19, 2022
Replies: 1 comment
-
|
Computed value should only return the URL while you can customise the HTML via URL::make('test URL', fn () => 'https://laravel.com')
->displayUsing(fn ($value) => '<a href="'.$value.'">laravel.com</a>')
->asHtml(), |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kichetof
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Computed value should only return the URL while you can customise the HTML via
displayUsing()