Skip to content

bibrokhim/laravel-force-json-response

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Force JSON Response for every request

This library checks the Accept header of each request. If the header is missing or has a value other than application/json, then the value will be set to application/json. This is enough for Laravel to return each response in JSON format. Install the package through Composer. Run the Composer require command from the Terminal:

composer require bibrokhim/laravel-force-json-response

About

Force JSON response for every request

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages