jeffer8a/laravel-mailchimp-newsletter

Simple mailchimp newsletter subscription box for Laravel 5.* with Bootstrap 3

0.1.0 2016-10-11 01:21 UTC

This package is not auto-updated.

Last update: 2022-01-12 13:08:35 UTC


README

Simple laravel 5.* mailchimp newsletter subscription box.

This package is based in the "https://github.com/skovmand/mailchimp-laravel#mand/mailchimp-laravel" package.

Install

"require": {
    "tropicalapps/laravel-mailchimp-newsletter": "0.1.*",
}

Provider

Go to config/app.php and edit the providers array

'providers' => [
	TropicalApps\Mailchimp\MailchimpServiceProvider::class,
]

Publish files

php artisan vendor:publish --provider="TropicalApps\Mailchimp\MailchimpServiceProvider" --tag=all

config config/mailchimp.php views resources/views/newsletter request Http/Requests/NewsletterRequest.php controller Http/Controllers/NewsletterController.php

Config

MAILCHIMP_API_KEY=
MAILCHIMP_LIST_ID=

Routing

Add the follow to your routes file

Route::post('subscribe', [
    'as'    => 'subscribe',
    'uses'  => 'NewsletterController@subscribe'
]);