composer.json
"require": {
"jsdecena/mailchimp": "^7.0"
}
Or issue this command:
composer require jsdecena/mailchimp
config/app.php
in providers
array
'providers' => [
Jsdecena\MailChimp\MailChimpServiceProvider::class,
]
php artisan vendor:publish --provider="Jsdecena\MailChimp\MailChimpServiceProvider"
Step4: Include the template anywhere in your template @include('mailchimp::mailchimp')
Step5: Set the variable in your .env
file
MAILCHIMP_API_KEY=YourMailChimpAPIKey
MAILCHIMP_LIST_ID=YourMailChimpListId
/resources/views/vendor/mailchimp/mailchimp.blade.php
{
"error": "List_RoleEmailMember: [email protected] is an invalid email address and cannot be imported."
}
{
"error":"Invalid MailChimp API key: 1112e36f7f44ef4cc3c5a584747abb05be"
}
{
"error":"Invalid MailChimp List ID: accf6b0a0e111"
}
{
"data": {
"email":"[email protected]",
"euid":"b0b8fdacbd",
"leid":"430369209"
}
}