From 7c01266dffde14b45c631930fb748267d5ba7106 Mon Sep 17 00:00:00 2001 From: Sean Pinegar Date: Thu, 29 Aug 2013 18:03:38 -0500 Subject: [PATCH] Update README.md Publish the configuration so that its not overwritten during a composer update. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d370ba..b5fd8eb 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ Furthermore, add the following the the `aliases` array: 'Mailchimp' => 'Hugofirth\Mailchimp\Facades\Mailchimp', … ), + +Publish the configuration + + $ php artisan config:publish hugofirth/mailchimp Lastly, run the command `composer update`. @@ -43,7 +47,7 @@ _\* The subsequent steps should be repeated for any file `app.php` created for a ###Usage: -Your unique MailChimp API key should be set in the package's config found in `..vendor/hugofirth/mailchimp/src/config/config.php` +Your unique MailChimp API key should be set in the package's config found in `app/config/packages/hugofirth/mailchimp/config.php` Methods of the MailChimp api class work as described by the MailChimp API docs found [Here][3]. Thanks to Laravel's use of the "Facade" design pattern, all methods may be called in the following manner: @@ -58,4 +62,4 @@ Enjoy! [1]: http://apidocs.mailchimp.com/api/downloads/#php [2]: http://laravel.com/ -[3]: http://apidocs.mailchimp.com/api/1.3/ \ No newline at end of file +[3]: http://apidocs.mailchimp.com/api/1.3/