softonic/laravel-request-accept-json-middleware
Laravel middleware that automatically sets the Accept: application/json header on incoming requests, ensuring your API returns JSON responses even when clients omit it. Easy to register globally or per route group, with no changes required to existing controllers or routes.
Consider adopting this release when:
Look elsewhere or defer when:
For executives: This release is a maintenance and compatibility update, not a new feature release. It keeps the package aligned with Laravel 12 and PHP 8.5 but requires a breaking upgrade. The business decision is whether to fund the platform upgrade now or keep legacy applications on the prior package version. There is no evidence of new revenue-generating functionality in these notes; the value is continued support and reduced long-term dependency risk.
For engineering: Version 5.0.0 requires Laravel ^12.0 and PHP ^8.5 and is not backward compatible. Do not upgrade applications on older stacks. Sequence adoption with the Laravel/PHP upgrade, pin the previous major version for legacy services, and include regression testing and rollback planning in the migration. Confirm whether the package is on the critical path for any roadmap items before committing to the upgrade window.
How can I help you explore Laravel packages today?