Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Eloquent Nested Attributes Laravel Package

mits87/eloquent-nested-attributes

Adds Rails-style nested attributes to Laravel's Eloquent ORM, letting you assign related models through a single attribute array and have them created, updated, or removed on save—cutting boilerplate for forms that manage parent and child records together.

View on GitHub
Deep Wiki
Context7

Getting Started

  • Treat 0.0.9 as a maintenance/compatibility release: the main practical change is Laravel 6 compatibility, not a documented new feature set.
  • Start with the package README, composer.json, service provider, config file, and tests. These define the real day-to-day API and supported Laravel/PHP constraints.
  • Install with a constrained pre-1.0 version, for example composer require vendor/package:^0.0.9, then verify auto-discovery or manually register the provider/facade if needed.
  • First use case: validate the package in a Laravel 6 app by publishing any config/migrations, running the package’s test suite, and exercising its primary entry point from a small test route or feature test.

Implementation Patterns

  • Pin the package to a narrow constraint in production. Since 0.0.x is pre-stable, avoid broad * constraints and review dependency changes on each upgrade.
  • Upgrade in isolation: run composer update vendor/package --with-dependencies, inspect the lockfile diff, then run the application test suite.
  • If the package exposes config, migrations, commands, facades, or helpers, publish/register them through the normal Laravel workflow and keep environment-specific values in .env.
  • Wrap package calls behind a small application service or adapter. This makes it easier to swap or isolate the dependency while the package remains pre-1.0.
  • For package contribution or local debugging, use the new .php_cs config with PHP-CS-Fixer and align CI PHP versions with the package’s Laravel 6 support matrix.

Gotchas and Tips

  • The release notes do not describe public API changes, so do not assume feature changes. The dependency upgrade is the most likely source of behavioral differences.
  • Laravel 6 compatibility implies PHP >=7.2; check composer.json before upgrading older applications or CI matrices.
  • The Travis PHP version fix is CI-only and does not guarantee runtime compatibility by itself. Verify with composer why-not and composer check-platform-reqs.
  • If package auto-discovery fails, clear caches and manually register the service provider/facade. Use php artisan package:discover and php artisan config:clear when debugging.
  • Because the version is 0.0.9, treat extension points as potentially unstable. Prefer adapters and tests over deep coupling to package internals.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource