nikans / text-linked
Text field with link (i.e. to this resource) on Index.
Installs: 39 817
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 3
Open Issues: 2
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-04-20 21:31:17 UTC
README
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.
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"),