Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个像这样的简单 Nova 集成:
我想以某种方式使该Name领域成为anchor. 因此,以与此相同的方式使其成为链接view button。有任何想法吗?(文档上没有)
Name
anchor
view button
Text::make('name') ->asHtml() ->displayUsing(function ($name) { return <a href="route('shops.show', $this->id)">{{$name}}</a> })
Text::make('Name', function () { return '<a href="#">'.$this->name.'</a>'; })->asHtml()