An text input that displays as a link to a resource when indexed.
Install the package into a Laravel app that uses Nova with Composer:
composer require causelabs/resource-index-link
Add the field to your resource in the fields
method:
use Causelabs\ResourceIndexLink\ResourceIndexLink;
ResourceIndexLink::make('name')
->rules(/* ... */),
The field extends the Laravel\Nova\Fields\Text
field, so all the usual methods are available.
Make the link open the resource in a new tab
ResourceIndexLink::make('name')
->newTab(),
Make the resource name a link to the resource.