Laravel Passport

Source Code


auth: {
  strategies: {
      'laravel.passport': {
        url: '...',
        client_id: '...',
        client_secret: '...'

Anywhere in your application logic:


💁 This provider is based on oauth2 scheme and supports all scheme options.

Obtaining url, client_id and client_secret

These options are REQUIRED. The url is the location of your Laravel application. To obtain the client_id and client_secret, create a new client app in your Laravel app.