PHPackages                             pharaonic/laravel-relational - 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. pharaonic/laravel-relational

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

pharaonic/laravel-relational
============================

Laravel - Simple relationships (Parents/Children) for model.

1.1.1(4y ago)17MITPHPPHP &gt;=7.0

Since Nov 8Pushed 4y agoCompare

[ Source](https://github.com/Pharaonic/laravel-relational)[ Packagist](https://packagist.org/packages/pharaonic/laravel-relational)[ Fund](https://liberapay.com/Pharaonic)[ Patreon](https://www.patreon.com/Pharaonic)[ RSS](/packages/pharaonic-laravel-relational/feed)WikiDiscussions main Synced yesterday

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

[![](https://raw.githubusercontent.com/Pharaonic/logos/main/relational.jpg)](https://pharaonic.io)

 [![PHP Version : >= 7.2](https://camo.githubusercontent.com/9df6251b0a30e5e779e91847ee207d9b9c28a6663ae45111d3bb0938d6e428d5/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d504850266d6573736167653d2533453d372e3226636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://php.net) [![Laravel Version : >= 6.0](https://camo.githubusercontent.com/253f8e1807ac67d51ecbf8cb08c2248be10f3370c8487a55d9306c9c2e16a9b7/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4c61726176656c266d6573736167653d2533453d362e3026636f6c6f723d463035333430267374796c653d666c61742d737175617265)](https://laravel.com) [![License](https://camo.githubusercontent.com/3bddc4b57ffbc3131c11447992761f4160ae9a1f1263563a50e73cc8d4369a27/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4c6963656e7365266d6573736167653d4d495426636f6c6f723d627269676874677265656e267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3bddc4b57ffbc3131c11447992761f4160ae9a1f1263563a50e73cc8d4369a27/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4c6963656e7365266d6573736167653d4d495426636f6c6f723d627269676874677265656e267374796c653d666c61742d737175617265) [![Support](https://camo.githubusercontent.com/f415133831f66bda8596f95552ed01fd3bb44a271ca18919f66195572e8ad7a7/68747470733a2f2f696d672e736869656c64732e696f2f6c69626572617061792f72656365697665732f50686172616f6e69633f636f6c6f723d676f6c64266c6162656c3d537570706f7274267374796c653d666c61742d737175617265)](https://liberapay.com/Pharaonic)
 [![Source](https://camo.githubusercontent.com/fe5e043ad190ad0f24191d3ee890922fcd8a43d88af46aceb76fe6f7f13ddf4b/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d5061636b6167697374266d6573736167653d70686172616f6e69632f6c61726176656c2d72656c6174696f6e616c26636f6c6f723d626c7565266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/Pharaonic/laravel-relational) [![Packagist Version](https://camo.githubusercontent.com/f89ec86eb54b832cc0249e65e0479a7d5724718e05e6c6d57e1eab9d30487f61/68747470733a2f2f706f7365722e707567782e6f72672f70686172616f6e69632f6c61726176656c2d72656c6174696f6e616c2f76)](https://packagist.org/packages/pharaonic/laravel-relational) [![Packagist Downloads](https://camo.githubusercontent.com/7cebbebe0a82f33f1e9182db7e606b91a3857c99e6909892acc770a45817e334/68747470733a2f2f706f7365722e707567782e6f72672f70686172616f6e69632f6c61726176656c2d72656c6174696f6e616c2f646f776e6c6f616473)](https://packagist.org/packages/pharaonic/laravel-relational)

### Simplest relationships (Parents/Children) for model.

[](#simplest-relationships-parentschildren-for-model)

Documentation
-------------

[](#documentation)

You can find the detailed documentation here in [Laravel Relational Documentation](https://pharaonic.io/package/2-laravel/3-relational).

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

[](#contributing)

Thank you for considering contributing to this package! Be one of Pharaonic team.

Pharaonic Sponsors
------------------

[](#pharaonic-sponsors)

We would like to extend our thanks to the following sponsors for funding Pharaonic packages development. If you are interested in becoming a sponsor, please visit the Pharaonic [Liberapay page](https://en.liberapay.com/Pharaonic) or [Patreon page](https://patreon.com/Pharaonic).

License
-------

[](#license)

This package is an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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 ~72 days

Total

4

Last Release

1793d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73609630?v=4)[Pharaonic](/maintainers/Pharaonic)[@Pharaonic](https://github.com/Pharaonic)

---

Top Contributors

[![MoamenEltouny](https://avatars.githubusercontent.com/u/16774083?v=4)](https://github.com/MoamenEltouny "MoamenEltouny (14 commits)")

---

Tags

laravellaravel-relationalphprelationshipsphplaravelrelationsrelationalRelationshipspharaonicchildrenparents

### Embed Badge

![Health badge](/badges/pharaonic-laravel-relational/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[umbrellio/laravel-ltree

Extension LTree (Postgres) for Laravel

34111.6k](/packages/umbrellio-laravel-ltree)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)[salehhashemi/laravel-repository

Implementing the repository pattern for Laravel projects.

2010.5k](/packages/salehhashemi-laravel-repository)

PHPackages © 2026

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