jeffer8a/laravel-mailchimp-newsletter

Simple mailchimp newsletter subscription box for Laravel 5.* with Bootstrap 3
7
Install
composer require jeffer8a/laravel-mailchimp-newsletter
Latest Version:0.1.0
License:MIT
Last Updated:Oct 11, 2016
Links: GitHub  ·  Packagist
Maintainer: jeffer8a

tropicalapps/laravel-mailchimp-newsletter

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'
]);