PHPackages                             kamicloud/laravel-unofficial-relations - 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. kamicloud/laravel-unofficial-relations

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

kamicloud/laravel-unofficial-relations
======================================

1.0.0(7y ago)482MITPHPPHP ^7.2

Since May 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Kamicloud/laravel-unofficial-relations)[ Packagist](https://packagist.org/packages/kamicloud/laravel-unofficial-relations)[ RSS](/packages/kamicloud-laravel-unofficial-relations/feed)WikiDiscussions master Synced 3w ago

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

laravel-unoffical-relations
===========================

[](#laravel-unoffical-relations)

This package provides several unofficial-relations to help laravel developer load models easily.

Available relations
-------------------

[](#available-relations)

### HasManyBySet

[](#hasmanybyset)

```
* Can load relation by id array or string
*
* @param $related
* @param string|null $foreignKey Format id1, id2 | array
* @param string|null $relatedKey
* @param string|callable $delimiter Default ',', allows customize function or null(for array foreignKey)

```

### HasMorphToByMapRelation

[](#hasmorphtobymaprelation)

```
* Can load morphTo with customize map
*
* @param  string  $name
* @param  string  $type Same as MorphTo
* @param  string  $id Same as MorphTo
* @param  string  $ownerKey Same as MorphTo
* @param  array|null $map [Morph type key name in DB => Model namespace]

```

### HasManyBySetAndMorphToByMapRelation

[](#hasmanybysetandmorphtobymaprelation)

```
* Can load morphTo with customize map and id can be a set
*
* @param  string  $name
* @param  string  $type Same as MorphTo
* @param  string  $id Same as MorphTo
* @param  string  $ownerKey Same as MorphTo
* @param  array|null $map Same as HasMorphToByMapRelation
* @param  string|callable $delimiter Same as HasManyBySetRelationship

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2594d ago

Major Versions

0.01 → 1.0.02019-05-29

### Community

Maintainers

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

---

Top Contributors

[![kamicloud](https://avatars.githubusercontent.com/u/10206616?v=4)](https://github.com/kamicloud "kamicloud (11 commits)")

### Embed Badge

![Health badge](/badges/kamicloud-laravel-unofficial-relations/health.svg)

```
[![Health](https://phpackages.com/badges/kamicloud-laravel-unofficial-relations/health.svg)](https://phpackages.com/packages/kamicloud-laravel-unofficial-relations)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.7k2](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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