Package Data | |
---|---|
Maintainer Username: | neilcrookes |
Maintainer Contact: | neil.crookes@fivebyfiveuk.com (Neil Crookes) |
Package Create Date: | 2013-11-26 |
Package Last Update: | 2014-01-17 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-10 15:04:53 |
Package Statistics | |
---|---|
Total Downloads: | 571 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 11 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 1 |
A Laravel 4 Package for adding newsletter signup (and unsubscribe) functionality to a web site
Add the following to you composer.json file
"fbf/laravel-newsletter-signup": "dev-master"
Run
composer update
Add the following to app/config/app.php
'Fbf\LaravelNewsletterSignup\LaravelNewsletterSignupServiceProvider'
Publish the config
php artisan config:publish fbf/laravel-newsletter-signup
Run the migration
php artisan migrate --package="fbf/laravel-newsletter-signup"
Optionally copy the administrator config to your administrators model config directory, if you have one
Coming soon
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.
However, you will most likely want to just @include one of the partials somewhere in your existing views, for example:
@include('laravel-newsletter-signup::signup')
or
@include('laravel-newsletter-signup::unsubscribe')
This will render the sign up or the unsubscribe form.
You can use the excellent Laravel Administrator package by frozennode to view and download your signups and unsubscribes.
http://administrator.frozennode.com/docs/installation
A ready-to-use model config file for the Signup model (newsletter.php) is provided in the src/config/administrator directory of the package