v0.1.0
0.1.0.0A Laravel 4 Package for adding newsletter signup (and unsubscribe) functionality to a web site
MIT
The Requires
- php >=5.3.0
- illuminate/support 4.*
by Neil Crookes
A Laravel 4 Package for adding newsletter signup (and unsubscribe) functionality to a web site
A Laravel 4 Package for adding newsletter signup (and unsubscribe) functionality to a web site, (*1)
Add the following to you composer.json file, (*2)
"fbf/laravel-newsletter-signup": "dev-master"
Run, (*3)
composer update
Add the following to app/config/app.php, (*4)
'Fbf\LaravelNewsletterSignup\LaravelNewsletterSignupServiceProvider'
Publish the config, (*5)
php artisan config:publish fbf/laravel-newsletter-signup
Run the migration, (*6)
php artisan migrate --package="fbf/laravel-newsletter-signup"
Optionally copy the administrator config to your administrators model config directory, if you have one, (*7)
Coming soon, (*8)
There is a route and a view supplied for rendering both the signup and unsubscribe forms, and you can configure the actual view and the actual uri in the config file., (*9)
However, you will most likely want to just @include one of the partials somewhere in your existing views, for example:, (*10)
@include('laravel-newsletter-signup::signup')
or, (*11)
@include('laravel-newsletter-signup::unsubscribe')
This will render the sign up or the unsubscribe form., (*12)
You can use the excellent Laravel Administrator package by frozennode to view and download your signups and unsubscribes., (*13)
http://administrator.frozennode.com/docs/installation, (*14)
A ready-to-use model config file for the Signup model (newsletter.php) is provided in the src/config/administrator directory of the package, (*15)
A Laravel 4 Package for adding newsletter signup (and unsubscribe) functionality to a web site
MIT