Skip to content

A Laravel Nova extension that creates a text input that displays as a link to a resource when indexed.

License

Notifications You must be signed in to change notification settings

KosmosKosmos/resource-index-link

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Nova Resource Index Field

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

About

A Laravel Nova extension that creates a text input that displays as a link to a resource when indexed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 46.2%
  • PHP 44.4%
  • JavaScript 9.0%
  • SCSS 0.4%