toneflix/laravel-resource-modifier
Laravel Resource Modifier helps you customize Eloquent API resource output on the fly. Add, remove, or transform fields and tailor JSON responses without duplicating resource classes, keeping your Laravel APIs flexible, consistent, and clean.
toneflix-code/laravel-resource-modifier → toneflix/laravel-resource-modifier and namespace ToneflixCode\ResourceModifier → Toneflix\ResourceModifier. Any team on 1.x must schedule a migration ticket (composer remove/require, import updates, republished config, CI/deploy cache invalidation). This is migration work, not a feature win — price it accordingly.toneflix vendor namespace plus a major version with no new user-facing features suggests a housekeeping/consolidation release. Treat ongoing reliance on a small, single-vendor package as an explicit accepted risk with a documented exit path (see below).Adopt when:
whenLoaded/when sprawl) to reshape payloads for different consumers.Look elsewhere / defer when:
when() is cheaper than a dependency plus its migration cost.Adoption gate for 2.x specifically: confirm composer can resolve the new name, then run the upgrade as a single atomic step — composer remove toneflix-code/laravel-resource-modifier followed by composer require toneflix/laravel-resource-modifier:^2.0, then replace ToneflixCode\ResourceModifier imports and republish the config. Watch for stale config caches and CI artifacts that still reference the old namespace.
For executives (one-liner): a small utility that lets us change API response shapes per client without rewriting resources — it avoids bespoke glue code, and its new major version lands in lockstep with our Laravel 12/13 upgrade. The cost is a one-time package/namespace rename on our side.
For engineering: version 2.0.0 is a rename + platform bump, not a feature release. Highlights:
toneflix/laravel-resource-modifier; namespace now Toneflix\ResourceModifier.Recommendation: approve the migration only as part of the Laravel 12/13 upgrade workstream, with 1.1.5 staying frozen for any app not yet upgraded. Track the vendor rename as a minor supply-chain signal and keep a documented fallback (native resources + conditional attributes) in case the package stalls.
How can I help you explore Laravel packages today?