title: Laravel 5.7: Is API request or not?
body: <p>Hi I am working on a project, and I want to use the same Controller for both API and WEB, is there a function that can tell whether it is a API request or Web ?</p>