A Laravel 5 Package for adding newsletter signup (and unsubscribe) functionality to a web site
tailored/laravel-newsletter is a Laravel package for a laravel 5 package for adding newsletter signup (and unsubscribe) functionality to a web site.
It currently has 0 GitHub stars and 11 downloads on Packagist (latest version v0.1.0).
Install it with composer require tailored/laravel-newsletter.
Discover more Laravel packages by tailored
or browse all Laravel packages to compare alternatives.
Last updated
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