causelabs/resource-index-link

A Laravel Nova Resource Index Link field.

Installs: 119 715

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 3

Forks: 8

Open Issues: 3

Language:Vue

v1.0.5 2019-01-17 20:23 UTC

This package is auto-updated.

Last update: 2024-04-18 08:09:23 UTC


README

An text input that displays as a link to a resource when indexed.

Installation

Install the package into a Laravel app that uses Nova with Composer:

composer require causelabs/resource-index-link

Usage

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.

Options

Open in a new tab

Make the link open the resource in a new tab

ResourceIndexLink::make('name')
    ->newTab(),

Example

Make the resource name a link to the resource.

Sample Index Page