cd
into the new project directory:.gitignore
file:auth
middleware.can
middleware.Auth
Facade, or the
auth()
helper function.For example, to retrieve the user’s identifier and email address:management()
method.Before making Management API calls you must enable your application to communicate with the Management
API. This can be done from the Auth0 Dashboard’s API page, choosing
Auth0 Management API
, and selecting the ‘Machine to Machine Applications’ tab. Authorize your Laravel
application, and then click the down arrow to choose the scopes you wish to grant.For the following example, in which we will update a user’s metadata and assign a random favorite color, you
should grant the read:users
and update:users
scopes. A list of API endpoints and the
required scopes can be found in the Management
API documentation.read:messages
permission.