PHPackages                             ht3aa/link-to-relation-text-column - 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. ht3aa/link-to-relation-text-column

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

ht3aa/link-to-relation-text-column
==================================

A text column that provide a link to the view or edit page of column relation (the relation should have a filament resource with view or edit page)

v3.0.4(6mo ago)055[3 PRs](https://github.com/ht3aa/link-to-relation-text-column/pulls)MITPHPPHP ^8.1CI passing

Since Dec 29Pushed 2mo agoCompare

[ Source](https://github.com/ht3aa/link-to-relation-text-column)[ Packagist](https://packagist.org/packages/ht3aa/link-to-relation-text-column)[ Docs](https://github.com/ht3aa/link-to-relation-text-column)[ GitHub Sponsors](https://github.com/ht3aa)[ RSS](/packages/ht3aa-link-to-relation-text-column/feed)WikiDiscussions 3.x Synced today

READMEChangelog (5)Dependencies (13)Versions (12)Used By (0)

A text column that provide a link to the view or edit page of column relation (the relation should have a filament resource with view or edit page)
===================================================================================================================================================

[](#a-text-column-that-provide-a-link-to-the-view-or-edit-page-of-column-relation-the-relation-should-have-a-filament-resource-with-view-or-edit-page)

[![Latest Version on Packagist](https://camo.githubusercontent.com/843f5c53ccdc9b8b87724cc30953aa4826bfe23e8e13985eb1725817af39bf0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68743361612f6c696e6b2d746f2d72656c6174696f6e2d746578742d636f6c756d6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ht3aa/link-to-relation-text-column)[![Total Downloads](https://camo.githubusercontent.com/e11eef2999a5add364bc9c5af9c4c48b1b25429740612f0142355e303fa93828/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68743361612f6c696e6b2d746f2d72656c6174696f6e2d746578742d636f6c756d6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ht3aa/link-to-relation-text-column)

[![LinkToRelationTextColumn Example](image.png)](image.png)

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

[](#installation)

You can install the package via composer (for now only support filament v3):

```
composer require ht3aa/link-to-relation-text-column
```

Usage
-----

[](#usage)

The `LinkToRelationTextColumn` class extends Filament's `TextColumn` and automatically creates clickable links to the view or edit page of related models in your Filament tables.

### Basic Usage

[](#basic-usage)

Import the class in your Filament resource:

```
use Ht3aa\LinkToRelationTextColumn\LinkToRelationTextColumn;
```

Then use it in your table definition. The column will automatically detect the related model and find its corresponding Filament resource:

```
use Ht3aa\LinkToRelationTextColumn\LinkToRelationTextColumn;

public static function table(Table $table): Table
{
    return $table
        ->columns([
            LinkToRelationTextColumn::make('user.name')
                ->label('User'),
            // ... other columns
        ]);
}
```

The column will:

- Automatically detect the related model (e.g., `User` from the `user` relation)
- Find the corresponding Filament resource for that model
- Create a link to the view page (if available) or edit page (if view is not available)
- Display an icon (arrow-top-right-on-square) when a link is available

### Specifying a Resource Manually

[](#specifying-a-resource-manually)

If you need to explicitly specify which Filament resource to use, you can use the `relationResource()` method:

```
use Ht3aa\LinkToRelationTextColumn\LinkToRelationTextColumn;
use App\Filament\Resources\UserResource;

public static function table(Table $table): Table
{
    return $table
        ->columns([
            LinkToRelationTextColumn::make('user.name')
                ->label('User')
                ->relationResource(UserResource::class),
            // ... other columns
        ]);
}
```

### Example: Complete Table Definition

[](#example-complete-table-definition)

```
use Filament\Tables\Table;
use Ht3aa\LinkToRelationTextColumn\LinkToRelationTextColumn;

public static function table(Table $table): Table
{
    return $table
        ->columns([
            TextColumn::make('id'),
            LinkToRelationTextColumn::make('author.name')
                ->label('Author')
                ->searchable(),
            LinkToRelationTextColumn::make('category.name')
                ->label('Category')
                ->relationResource(CategoryResource::class),
            // ... other columns
        ]);
}
```

Credits
-------

[](#credits)

- [Hasan Tahseen](https://github.com/ht3aa)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance78

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.7% 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

Every ~2 days

Total

6

Last Release

174d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/96876427?v=4)[Hassan Tahseen](/maintainers/ht3aa)[@ht3aa](https://github.com/ht3aa)

---

Top Contributors

[![ht3aa](https://avatars.githubusercontent.com/u/96876427?v=4)](https://github.com/ht3aa "ht3aa (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelfilamentphpht3aalink-to-relation-text-column

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ht3aa-link-to-relation-text-column/health.svg)

```
[![Health](https://phpackages.com/badges/ht3aa-link-to-relation-text-column/health.svg)](https://phpackages.com/packages/ht3aa-link-to-relation-text-column)
```

###  Alternatives

[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

128192.3k3](/packages/dotswan-filament-map-picker)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

6649.5k1](/packages/marcelweidum-filament-passkeys)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

94135.4k5](/packages/marcelweidum-filament-expiration-notice)

PHPackages © 2026

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