You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

1 month ago
  1. <?php
  2. return [
  3. /*
  4. * The driver to use to interact with MailChimp API.
  5. * You may use "log" or "null" to prevent calling the
  6. * API directly from your environment.
  7. */
  8. 'driver' => env('NEWSLETTER_DRIVER', Spatie\Newsletter\Drivers\MailChimpDriver::class),
  9. /**
  10. * These arguments will be given to the driver.
  11. */
  12. 'driver_arguments' => [
  13. 'api_key' => env('NEWSLETTER_API_KEY'),
  14. 'endpoint' => env('NEWSLETTER_ENDPOINT'),
  15. ],
  16. /*
  17. * The list name to use when no list name is specified in a method.
  18. */
  19. 'default_list_name' => 'subscribers',
  20. 'lists' => [
  21. /*
  22. * This key is used to identify this list. It can be used
  23. * as the listName parameter provided in the various methods.
  24. *
  25. * You can set it to any string you want and you can add
  26. * as many lists as you want.
  27. */
  28. 'subscribers' => [
  29. /*
  30. * When using the Mailcoach driver, this should be Email list UUID
  31. * which is displayed in the Mailcoach UI
  32. *
  33. * When using the MailChimp driver, this should be a MailChimp list id.
  34. * http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id.
  35. */
  36. 'id' => env('NEWSLETTER_LIST_ID'),
  37. ],
  38. ],
  39. ];