The app would have multiple route groups, the standard desktop site at /
and then an API at /api/v*
that is used by the mobile app and eventually by some Javascript code in the desktop site (for example a search function that loads results via AJAX).
In case of an API, there's no need for views, your controllers directly return JSON responses with Response::json()
- and in some cases Laravel automatically takes care of that, for example you can directly return an instance of a model and the framework will automatically serialize it into JSON.