Looking to hire Laravel developers? Try LaraJobs

laravel-newsletter-emailoctopus maintained by adamcmoore

Description
EmailOctopus Driver for Spatie Laravel Newsletter
Author
Last update
2024/03/20 11:10 (dev-master)
License
Links
Downloads
102

Comments
comments powered by Disqus

EmailOctopus Driver for Spatie Laravel Newsletter

Installation

composer require adamcmoore/laravel-newsletter-emailoctopus

Usage

This package is a driver for Spatie Newsletter.

To use this driver set your config/newsletter.php to include the below:

<?php

return [
    'driver' => AcMoore\LaravelNewsletter\Drivers\EmailOctopusDriver::class,
    'driver_arguments' => [
        'api_key' => env('EMAIL_OCTOPUS_API_KEY'),
    ],
    'default_list_name' =>  'default',
    'lists' => [
        'default' => [
            'id' => env('EMAIL_OCTOPUS_LIST_ID'),
        ],
    ],
];

Documentation for full usage can be found on the Spatie Newsletter GitHub page.

Testing

Clone tests/.env.example to tests/.env and set the required config values.

For all tests to pass you should ensure your testing list has Double opt-in enabled.