PHPackages                             kohutd/laravel-relation-traits - 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. [Database &amp; ORM](/categories/database)
4. /
5. kohutd/laravel-relation-traits

ActiveLibrary[Database &amp; ORM](/categories/database)

kohutd/laravel-relation-traits
==============================

Easily generate model relation traits in Laravel.

v0.0.3(3y ago)021MITPHPPHP ^8.1

Since Nov 8Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (11)Versions (4)Used By (0)

laravel-relation-traits
=======================

[](#laravel-relation-traits)

Easily generate model relation traits in Laravel.

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

[](#installation)

```
composer require kohutd/laravel-relation-traits
```

Usage
-----

[](#usage)

```
php artisan make:relation:belongs-to User

php artisan make:relation:has-one User

php artisan make:relation:has-many User

php artisan make:relation:all User
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

3

Last Release

1281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3f4af288b1ce188d4ffb9f89e415f47f84bf4ada50074447cf804245ef3c19?d=identicon)[expexes](/maintainers/expexes)

---

Top Contributors

[![kohutd](https://avatars.githubusercontent.com/u/21020331?v=4)](https://github.com/kohutd "kohutd (5 commits)")

---

Tags

laraveleloquentkohutdlaravel-relation-traits

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kohutd-laravel-relation-traits/health.svg)

```
[![Health](https://phpackages.com/badges/kohutd-laravel-relation-traits/health.svg)](https://phpackages.com/packages/kohutd-laravel-relation-traits)
```

###  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)[shiftonelabs/laravel-cascade-deletes

Adds application level cascading deletes to Eloquent Models.

163632.1k2](/packages/shiftonelabs-laravel-cascade-deletes)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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