Reputation: 1092
I have a simple Nova integration like this :
I want somehow to make the Name
field to be an anchor
. So, to make it a link the same way that view button
does. Any ideas? (Nothing on docs)
Upvotes: 0
Views: 612
Reputation: 1092
Text::make('name')
->asHtml()
->displayUsing(function ($name) {
return <a href="route('shops.show', $this->id)">{{$name}}</a>
})
Upvotes: 3
Reputation: 466
Text::make('Name', function () {
return '<a href="#">'.$this->name.'</a>';
})->asHtml()
Upvotes: 1