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.
How can I help you explore Laravel packages today?