pilaster / epistolary
Laravel Newsletter Management
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 403
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 1
Open Issues: 12
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ~5.3|~6.0
- ramsey/uuid: ^3.5
Requires (Dev)
- fzaninotto/faker: ~1.4
- laravel/framework: 5.2.*|5.3.*
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.0
- symfony/css-selector: 3.1.*
- symfony/dom-crawler: 3.1.*
- tightenco/mailthief: ^0.3.1
This package is not auto-updated.
Last update: 2020-04-17 18:08:53 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.