Laravel SDK - Get access token for API

M2M just describes the grant/scenario. If you’re calling an API as a web application, then the web application calls as it itself using the credentials needed (client ID and password). User data should not be a part of the token since users are not authenticating for that API. If you need to take an action for a user, that info should be included in the API call (POST body or however your API expects it).