PHPackages                             laratree/laravel-link - 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. laratree/laravel-link

ActiveLibrary

laratree/laravel-link
=====================

Associate models with URL links

v1.0.1(2y ago)07[2 PRs](https://github.com/laratree/laravel-link/pulls)MITPHP

Since Nov 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/laratree/laravel-link)[ Packagist](https://packagist.org/packages/laratree/laravel-link)[ Docs](https://github.com/laratree/laravel-link)[ RSS](/packages/laratree-laravel-link/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Laravel Links
=============

[](#laravel-links)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5a6583a455c7cd913c6a4928b7f4ac38e11e89ab49946ba74fcee6790f079514/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c617261747265652f6c61726176656c2d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laratree/laravel-link)[![GitHub Tests Action Status](https://camo.githubusercontent.com/dbea94aa9225d37849c73f30c8ffbec9855e80012d35e63f81c1029b5357ba00/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c617261747265652f6c61726176656c2d6c696e6b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/laratree/laravel-link/actions?query=workflow%3Arun-tests+branch%3Amain)[![codecov](https://camo.githubusercontent.com/c5966f8595c5814127b8e3eb8604e29a0db942f740c7fbf96c47c47c8f2dadd5/68747470733a2f2f636f6465636f762e696f2f67682f6c617261747265652f6c61726176656c2d6c696e6b2f67726170682f62616467652e7376673f746f6b656e3d354453323637504a424a)](https://codecov.io/gh/laratree/laravel-link)[![Total Downloads](https://camo.githubusercontent.com/ae7b39528ff32519096429c30bdbe0807dd775eb732796cded1c04a92ac7d810/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c617261747265652f6c61726176656c2d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laratree/laravel-link)

Associate models with URL links.

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

[](#installation)

You can install the package via composer:

```
composer require laratree/laravel-link
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-link-migrations"

php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag=":laravel-link"
```

This is the contents of the published config file:

```
return [
    'table' => 'links',
];
```

Usage
-----

[](#usage)

```
// Register Trait on User model.
use HasLink;

// Attach Link to User
$user = User::latest()->first();
$user->attachLink($url = 'https://portfolio.com');

// Delete Link
$user->deleteLink('https://portfolio.com');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [MimisK13](https://github.com/mimisk13)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.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

Unknown

Total

1

Last Release

917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9fb24d3d1caf4440de446b880db80aaf5eb5b080dff6b6997a8e2783910f1af?d=identicon)[MimisK](/maintainers/MimisK)

---

Top Contributors

[![MimisK13](https://avatars.githubusercontent.com/u/10620005?v=4)](https://github.com/MimisK13 "MimisK13 (39 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

---

Tags

laravellaratreelaravel-link

### Embed Badge

![Health badge](/badges/laratree-laravel-link/health.svg)

```
[![Health](https://phpackages.com/badges/laratree-laravel-link/health.svg)](https://phpackages.com/packages/laratree-laravel-link)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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