Package Data | |
---|---|
Maintainer Username: | jeffer8a |
Package Create Date: | 2016-10-11 |
Package Last Update: | 2016-10-11 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-24 03:02:35 |
Package Statistics | |
---|---|
Total Downloads: | 7 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Simple laravel 5.* mailchimp newsletter subscription box.
This package is based in the "https://github.com/skovmand/mailchimp-laravel#mand/mailchimp-laravel" package.
"require": {
"tropicalapps/laravel-mailchimp-newsletter": "0.1.*",
}
Go to config/app.php
and edit the providers
array
'providers' => [
TropicalApps\Mailchimp\MailchimpServiceProvider::class,
]
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
MAILCHIMP_API_KEY=
MAILCHIMP_LIST_ID=
Add the follow to your routes file
Route::post('subscribe', [
'as' => 'subscribe',
'uses' => 'NewsletterController@subscribe'
]);