Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Readme

Nova TextLinked custom field

Nova custom Text Field with a link to a resource (or any URL) on index screen.

Nova links ID fields to a resource by default. The custom field is useful if you're using a text ID field or want to link a resource's title, as shown below.

Nova TextLinked Field Example

The field behaves just like the default text field on detail and form screens.

Installation

composer require nikans/text-linked

Usage options

Automatically link a resource to a title or text ID field

TextLinked::make('Title', 'title')
    ->link($this),
    
TextLinked::make('ID')
    ->link($this),

Link a resource by uriKey and id

TextLinked::make('Title', 'title')
    ->linkResource($this->uriKey(), $this->id),

Add a random URL

TextLinked::make('ID')
    ->url("https://novapackages.com"),

Screenshots

Reviews

By The Great Tao on April 4, 2021

good

Back to Top
Added 4 years ago
Last updated 4 Years Ago
Version 1.0.0
Composer
nikans/text-linked
GitHub stars 8
Packagist downloads 59,258

Favorites

6 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
4 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas