Skip to content
Discussion options

You must be logged in to vote

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

URL::make('test URL', fn () => 'https://laravel.com')
                ->displayUsing(fn ($value) => '<a href="'.$value.'">laravel.com</a>')
                ->asHtml(),

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kichetof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4948 on October 19, 2022 08:39.