PHPackages                             yuges-code/laravel-groupable - 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. yuges-code/laravel-groupable

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

yuges-code/laravel-groupable
============================

🗃️ Package for easily attaching groups to Laravel eloquent models

1.0.5(7mo ago)28MITPHPPHP ^8.4CI passing

Since Apr 15Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/yuges-code/laravel-groupable)[ Packagist](https://packagist.org/packages/yuges-code/laravel-groupable)[ Docs](https://yuges-code.github.io/laravel-groupable)[ GitHub Sponsors](https://github.com/yuges-code)[ RSS](/packages/yuges-code-laravel-groupable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

 [![](https://raw.githubusercontent.com/yuges-code/laravel-groupable/master/assets/logo.png)](https://raw.githubusercontent.com/yuges-code/laravel-groupable/master/assets/logo.png)

 **Build **[![GitHub Branch Check Runs](https://camo.githubusercontent.com/263c5d46449f59bd2a14541c301ddaee7499b84535f59f4df657bdb756efc0ed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f79756765732d636f64652f6c61726176656c2d67726f757061626c652f6d61696e)](https://camo.githubusercontent.com/263c5d46449f59bd2a14541c301ddaee7499b84535f59f4df657bdb756efc0ed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f79756765732d636f64652f6c61726176656c2d67726f757061626c652f6d61696e) [![GitHub Tests Action Status](https://camo.githubusercontent.com/ea0355089e50275e725db779d2f3cbe8c11e63fb3f8066f630b89f2ce9150fa4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756765732d636f64652f6c61726176656c2d67726f757061626c652f74657374696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ea0355089e50275e725db779d2f3cbe8c11e63fb3f8066f630b89f2ce9150fa4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756765732d636f64652f6c61726176656c2d67726f757061626c652f74657374696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)****

 ******Project** [![GitHub Release](https://camo.githubusercontent.com/ed1bcabcf7538d4ee690e3697ab838e3c876acabc203c8b52f1f7773e4c3a3d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79756765732d636f64652f6c61726176656c2d67726f757061626c65)](https://camo.githubusercontent.com/ed1bcabcf7538d4ee690e3697ab838e3c876acabc203c8b52f1f7773e4c3a3d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79756765732d636f64652f6c61726176656c2d67726f757061626c65) [![Packagist Downloads](https://camo.githubusercontent.com/0b6384a5b45e2256a5a798955d4ae9bf5c85d04cac995ac3585bef143a168f34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756765732d636f64652f6c61726176656c2d67726f757061626c65)](https://camo.githubusercontent.com/0b6384a5b45e2256a5a798955d4ae9bf5c85d04cac995ac3585bef143a168f34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756765732d636f64652f6c61726176656c2d67726f757061626c65) [![GitHub License](https://camo.githubusercontent.com/c5fe3864eeaf995a63580226359aa968b3c64f60fc8388ce2edcb48ae1708422/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79756765732d636f64652f6c61726176656c2d67726f757061626c65)](https://camo.githubusercontent.com/c5fe3864eeaf995a63580226359aa968b3c64f60fc8388ce2edcb48ae1708422/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79756765732d636f64652f6c61726176656c2d67726f757061626c65) [![Packagist Stars](https://camo.githubusercontent.com/df80838ae1ff93f0e4ec53e926c52f8758914a1fdfcf87fcec660a570b98cd40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f79756765732d636f64652f6c61726176656c2d67726f757061626c65)](https://camo.githubusercontent.com/df80838ae1ff93f0e4ec53e926c52f8758914a1fdfcf87fcec660a570b98cd40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f79756765732d636f64652f6c61726176656c2d67726f757061626c65) [![Packagist Dependency Version](https://camo.githubusercontent.com/51179fbd5859499cac517a54985c14abfe362f18b284d2e8768d4a1653003a7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f79756765732d636f64652f6c61726176656c2d67726f757061626c652f706870)](https://camo.githubusercontent.com/51179fbd5859499cac517a54985c14abfe362f18b284d2e8768d4a1653003a7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f79756765732d636f64652f6c61726176656c2d67726f757061626c652f706870)

 **Quality**

Laravel Groupable
=================

[](#laravel-groupable)

### 🗃️ Package for easily attaching groups to Laravel eloquent models

[](#️-package-for-easily-attaching-groups-to-laravel-eloquent-models)

💿 Installation
==============

[](#-installation)

### → Composer

[](#-composer)**** You can install the package via composer:

```
composer require yuges-code/laravel-groupable

```

### → Publishing Config

[](#-publishing-config)

Publishing the config file (config/groupable.php) is optional:

```
php artisan vendor:publish --provider="Yuges\Groupable\Providers\GroupableServiceProvider" --tag="groupable-configs"

```

### → Publishing Migrations

[](#-publishing-migrations)

You need to publish the migration to create the groups table:

```
php artisan vendor:publish --provider="Yuges\Groupable\Providers\GroupableServiceProvider" --tag="groupable-migrations"

```

### → Running Migrations

[](#-running-migrations)

After that, you need to run migrations:

```
php artisan migrate

```

🧪 Running Tests
===============

[](#-running-tests)

### → PHPUnit tests

[](#-phpunit-tests)

To run tests, run the following command:

```
composer test

```

⚖️ License
==========

[](#️-license)

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

🙆🏼‍♂️ Authors Information
=========================

[](#‍️-authors-information)

Created in 2025 by:

- [Yuges-code](https://github.com/yuges-code)
- [All Contributors](../../contributors)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance64

Regular maintenance activity

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Every ~34 days

Recently: every ~42 days

Total

6

Last Release

229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1aed716bd0f2c595ae974ee3aebc6f4c1488f8e5851c754a05a3467a0b70ed23?d=identicon)[yuges-code](/maintainers/yuges-code)

---

Top Contributors

[![goshasafonov](https://avatars.githubusercontent.com/u/48834605?v=4)](https://github.com/goshasafonov "goshasafonov (14 commits)")[![yuges-code](https://avatars.githubusercontent.com/u/186908593?v=4)](https://github.com/yuges-code "yuges-code (7 commits)")

---

Tags

groupslaravelmorphablepackagephpyugesphplaravelpackagegroupsyuges

### Embed Badge

![Health badge](/badges/yuges-code-laravel-groupable/health.svg)

```
[![Health](https://phpackages.com/badges/yuges-code-laravel-groupable/health.svg)](https://phpackages.com/packages/yuges-code-laravel-groupable)
```

###  Alternatives

[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)

PHPackages © 2026

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