passport.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Passport Guard
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you may specify which authentication guard Passport will use when
  9. | authenticating users. This value should correspond with one of your
  10. | guards that is already present in your "auth" configuration file.
  11. |
  12. */
  13. 'guard' => 'web',
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Encryption Keys
  17. |--------------------------------------------------------------------------
  18. |
  19. | Passport uses encryption keys while generating secure access tokens for
  20. | your application. By default, the keys are stored as local files but
  21. | can be set via environment variables when that is more convenient.
  22. |
  23. */
  24. 'private_key' => env('PASSPORT_PRIVATE_KEY'),
  25. 'public_key' => env('PASSPORT_PUBLIC_KEY'),
  26. /*
  27. |--------------------------------------------------------------------------
  28. | Client UUIDs
  29. |--------------------------------------------------------------------------
  30. |
  31. | By default, Passport uses auto-incrementing primary keys when assigning
  32. | IDs to clients. However, if Passport is installed using the provided
  33. | --uuids switch, this will be set to "true" and UUIDs will be used.
  34. |
  35. */
  36. 'client_uuids' => false,
  37. /*
  38. |--------------------------------------------------------------------------
  39. | Personal Access Client
  40. |--------------------------------------------------------------------------
  41. |
  42. | If you enable client hashing, you should set the personal access client
  43. | ID and unhashed secret within your environment file. The values will
  44. | get used while issuing fresh personal access tokens to your users.
  45. |
  46. */
  47. 'personal_access_client' => [
  48. 'id' => env('PASSPORT_PERSONAL_ACCESS_CLIENT_ID'),
  49. 'secret' => env('PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET'),
  50. ],
  51. ];