UPDATE 10th June 2019 : I posted this article on LaravelUK Slack channel and David T gave me some valuable feedback. You can force Laravel to always return only JSON by specifying the Accept header However, there may be instances where you want to force it regardless and the below article demonstrates how to do […]
Read More