LaravelPackages.net
Acme Inc.
Toggle sidebar
nikans/text-linked

Text field with link (i.e. to this resource) on Index.

62.561
8
1.0.0
About nikans/text-linked

nikans/text-linked is a Laravel package for text field with link (i.e. to this resource) on index.. It currently has 8 GitHub stars and 62.561 downloads on Packagist (latest version 1.0.0). Install it with composer require nikans/text-linked. Discover more Laravel packages by nikans or browse all Laravel packages to compare alternatives.

Last updated

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

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

Add a random URL

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