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.
Architecture fit
Integration feasibility
composer remove the old vendor package, composer require the new one, then global-replace the namespace in application code and published config.Technical risk
^8.3|^8.4 and Illuminate ^12.0|^13.0 drops Laravel 10 and 11 and PHP 8.1/8.2. Any service not already on Laravel 12+ cannot take this release at all. This is the single largest gating factor.composer.json but unresolvable imports.toneflix-code/laravel-resource-modifier:1.x and toneflix/laravel-resource-modifier:2.x from being installed transitively in a monorepo or via a third-party package that still pins the old name. Duplicate packages mean two divergent config sources and two behavioural paths.toneflix/ namespace. The old package name should be checked for an abandoned flag on Packagist — if it is not flagged, tooling and security scanners will keep treating it as a live, supported dependency and won't route advisories to the new name.Key questions
1.1.5 under the old name receive patches or be abandoned outright?abandoned with the new name as the suggested replacement? If not, our dependency scanning and upgrade tooling will not surface this migration.ToneflixCode\ResourceModifier\* FQCNs (queued jobs, cached fragments, config in a database, feature-flag payloads)?Stack fit
Migration path
toneflix-code/laravel-resource-modifier:1.1.5 as the known-good fallback, inventory all references (code imports, published config, container bindings, string literals), confirm platform floor for the target service.composer remove → composer require toneflix/laravel-resource-modifier:^2.0 → namespace replacement across imports and config → composer dump-autoload → re-publish config with --force after diffing against the existing copy → clear config/route/view caches.composer.lock and composer why for transitive holders of toneflix-code/laravel-resource-modifier.Compatibility
Sequencing
Maintenance
Support
ToneflixCode identifier. Engineers troubleshooting at 2am will search the old name and find documentation that no longer applies to what's installed.Scaling
Failure modes
Class not found across all endpoints after deploy. Mitigation: always dump-autoload in the deploy step and gate on a smoke test.composer why audit pre-merge and a lockfile assertion.Ramp-up
How can I help you explore Laravel packages today?