A package to manage newsletters in larave 5
A package to manage newsletter in Laravel 5.
Register the Service Provider
// config/app.php 'providers' => [ ... 'TobyMaxham\Newsletter\NewsletterServiceProvider', ... ];
We currently have essentially no documentation at the moment, but are working on it, and are open to pull requests.
Register a new subscriber
// Simply add a new subscriber. Newsletter::subscribe('Heiko@nothing-on-website.net'); // Attach the subscriber on a NewsletterList. Newsletter::subscribe('firstname.lastname@example.org', 'Evil Mailing'); // Add some user informations Newsletter::subscribe('Heiko@nothing-on-website.net', ['firstname' => 'Heiko'], 'The Simple List');
Also you can remove a subscriber.
// Remove from all Newsletter Lists and delete from subscriber Newsletter::unsubscribe('email@example.com'); // Only remove from a special list Newsletter::unsubscribe('firstname.lastname@example.org', 'Free Tutorials');
By using this package you'll get more time to eat kraut.
TobyMaxham'S Kraut Newsletter is licensed under The MIT License (MIT).