PHPackages                             lednerb/nova-text-linked-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lednerb/nova-text-linked-field

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lednerb/nova-text-linked-field
==============================

Laravel Nova custom Text Field with a link to a resource or custom URL

v1.1.0(4y ago)096MITVuePHP &gt;=7.1.0

Since Apr 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Lednerb/nova-text-linked-field)[ Packagist](https://packagist.org/packages/lednerb/nova-text-linked-field)[ RSS](/packages/lednerb-nova-text-linked-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Nova TextLinked custom field
============================

[](#nova-textlinked-custom-field)

[![Packagist Version](https://camo.githubusercontent.com/3d5d86bf911817af01e270d5346a2b14a14b007ccee4308ec344fda6bdb64863/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c65646e6572622f6e6f76612d746578742d6c696e6b65642d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lednerb/nova-text-linked-field)[![Packagist Downloads](https://camo.githubusercontent.com/1eedd7d9ecaef913f6f93c1214f9044aeab43fc312e4358466b05c2040d6d58f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65646e6572622f6e6f76612d746578742d6c696e6b65642d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lednerb/nova-text-linked-field)

This package is an enhanced version of the original [nikans/text-linked](https://github.com/nikans/text-linked) field with additional features:

- open links in new tabs / targets
- trim functionality with nova tooltip support

**NB:** The field is compatible to the original one, if you plan to change to this package you only have to update the imports.

---

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](https://github.com/laravel/nova-issues/issues/268)or want to **link a resource's title**, as shown below.

[![Nova TextLinked Field Example](https://github.com/lednerb/nova-text-linked-field/raw/master/nova-text-linked-field-example.png "Nova TextLinked Field Example")](https://github.com/lednerb/nova-text-linked-field/blob/master/nova-text-linked-field-example.png)

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

Installation
------------

[](#installation)

```
composer require lednerb/nova-text-linked-field
```

Usage options
-------------

[](#usage-options)

### Automatically link a resource to a title or text ID field

[](#automatically-link-a-resource-to-a-title-or-text-id-field)

```
use Lednerb\TextLinked\TextLinked;

...

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

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

### Link a resource by `uriKey` and `id`

[](#link-a-resource-by-urikey-and-id)

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

### Add a random URL

[](#add-a-random-url)

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

### Open the link in a new tab or target

[](#open-the-link-in-a-new-tab-or-target)

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

TextLinked::make('Title', 'title')
    ->link($this)
    ->openInNewTab('myTarget'),
```

### Trim long values to a specific amount of chars

[](#trim-long-values-to-a-specific-amount-of-chars)

[![Nova TextLinked Field Trim Functionality](https://github.com/lednerb/nova-text-linked-field/raw/master/tooltip-preview.png "Tooltip Preview")](https://github.com/lednerb/nova-text-linked-field/blob/master/tooltip-preview.png)

```
TextLinked::make('Title', 'title')
    ->link($this)
    ->trim(), // Default are 50 chars

TextLinked::make('Title', 'title')
    ->link($this)
    ->trim(60),
```

By default a tooltip will be shown on hover state with the full untrimed value. If you don't want the tooltip, you can disable it as follows:

```
TextLinked::make('Title', 'title')
    ->link($this)
    ->trim()
    ->hideTooltip(),
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1504d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/877ffa580db2a303f37db4d218e52ffec0dfb61161ac3a1e56384dd4a5a5a2dc?d=identicon)[Lednerb](/maintainers/Lednerb)

---

Top Contributors

[![Lednerb](https://avatars.githubusercontent.com/u/2056876?v=4)](https://github.com/Lednerb "Lednerb (9 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/lednerb-nova-text-linked-field/health.svg)

```
[![Health](https://phpackages.com/badges/lednerb-nova-text-linked-field/health.svg)](https://phpackages.com/packages/lednerb-nova-text-linked-field)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
