PHPackages                             cfx/laravel-nested-attributes - 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. cfx/laravel-nested-attributes

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

cfx/laravel-nested-attributes
=============================

This is my package laravel-nested-attributes

021PHP

Since Nov 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hjJunior/laravel-nested-attributes)[ Packagist](https://packagist.org/packages/cfx/laravel-nested-attributes)[ RSS](/packages/cfx-laravel-nested-attributes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

This is my package laravel-nested-attributes
============================================

[](#this-is-my-package-laravel-nested-attributes)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e1c3a772d023752f3085f874c0773df3d564ad3509548805834f4c343a382e6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6366782f6c61726176656c2d6e65737465642d617474726962757465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cfx/laravel-nested-attributes)[![GitHub Tests Action Status](https://camo.githubusercontent.com/cba0bd49c7e34bb66666700aef35e609071ea01bbba0607c8ecbd5d4c00de026/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6366782f6c61726176656c2d6e65737465642d617474726962757465732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/cfx/laravel-nested-attributes/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/52945aa6b7b2361bdc07fb60c0d31c2141f33ad7da1feac4a6292cdccceaef62/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6366782f6c61726176656c2d6e65737465642d617474726962757465732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/cfx/laravel-nested-attributes/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e18c97dfdef6506cc7f3da384fd6bda141dbb7af1a7189b6712bc6c562c6237c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6366782f6c61726176656c2d6e65737465642d617474726962757465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cfx/laravel-nested-attributes)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/01f0769cc49989c3ea363caa7c321cbc990eecd313e4b98810a43b04246f6714/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6e65737465642d617474726962757465732e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-nested-attributes)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require cfx/laravel-nested-attributes
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-nested-attributes-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

```
class JobOffer extends Model
{
  use HasNestedAttributesTrait;

  protected $nested = ["phases"];

  public function phases()
  {
    return $this->hasMany(JobOfferPhase::class);
  }
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Helio S. Junior](https://github.com/hjJunior)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c584cfdc0538a8a41cc753c220194d9ff7d8587f2b25897f2c6c42b0fc607bd5?d=identicon)[hjJunior](/maintainers/hjJunior)

---

Top Contributors

[![Henrique-BF](https://avatars.githubusercontent.com/u/88340680?v=4)](https://github.com/Henrique-BF "Henrique-BF (5 commits)")[![hjJunior](https://avatars.githubusercontent.com/u/10780132?v=4)](https://github.com/hjJunior "hjJunior (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/cfx-laravel-nested-attributes/health.svg)

```
[![Health](https://phpackages.com/badges/cfx-laravel-nested-attributes/health.svg)](https://phpackages.com/packages/cfx-laravel-nested-attributes)
```

PHPackages © 2026

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