PHPackages                             mashirou1234/laravel-when-on-relation - 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. mashirou1234/laravel-when-on-relation

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

mashirou1234/laravel-when-on-relation
=====================================

Adds conditional callbacks on Laravel Eloquent relationship instances.

v0.1.0(1w ago)02↓100%MITPHP ^8.3

Since May 31Compare

[ Source](https://github.com/mashirou1234/laravel-when-on-relation)[ Packagist](https://packagist.org/packages/mashirou1234/laravel-when-on-relation)[ Docs](https://github.com/mashirou1234/laravel-when-on-relation)[ RSS](/packages/mashirou1234-laravel-when-on-relation/feed)WikiDiscussions Synced 1w ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/mashirou1234/laravel-when-on-relation).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance98

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

10d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f54e4d6a0af5ff1f0d54da96a6a1bebcc0959b6dbe378570464d28890454776?d=identicon)[mashirou1234](/maintainers/mashirou1234)

---

Tags

laraveleloquentrelationwhen

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mashirou1234-laravel-when-on-relation/health.svg)

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

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M84](/packages/mongodb-laravel-mongodb)[spatie/laravel-sluggable

Generate slugs when saving Eloquent models

1.5k12.4M291](/packages/spatie-laravel-sluggable)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[watson/validating

Eloquent model validating trait.

9743.4M53](/packages/watson-validating)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M16](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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