pilaster/epistolary

Laravel Newsletter Management

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

This package is not auto-updated.

Last update: 2020-01-24 16:24:17 UTC


README

Manage your newsletters and subscribers in an existing Laravel application

Installation

Composer

composer require pilaster/epistolary

and then add this to config/app.php:

Pilaster\Epistolary\Providers\EpistolaryServiceProvider::class,

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:

--tag=views,config,migrations,factories,seeds

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.