Laravel Newsletter Management

dev-master 2017-02-17 20:33 UTC

This package is not auto-updated.

Last update: 2020-04-17 18:08:53 UTC


Manage your newsletters and subscribers in an existing Laravel application



composer require pilaster/epistolary

and then add this to config/app.php:


To publish all of the file groups (config/views/migrations/etc.) do:

php artisan vendor:publish --provider="Pilaster\Epistolary\Providers\EpistolaryServiceProvider"

You can specify only certain file groups by adding the --tag option:


You can use also add the --force option at the end to overwrite older versions of any previously published file groups.

After publishing the database file groups you can migrate and seed the database with dummy test data:

php artisan migrate

Dummy Data

php artisan db:seed --class=NewsletterDatabaseSeeder

Integrating views into your app

php artisan vendor:publish --tag=views

Then in resources/views/vendor/epistolary/layout.blade.php, extend your own app's layout file.

Make sure you have a scripts section, a scripts stack and a styles stack. Otherwise, adjust things to suit.