sanatorium / newsletter
Newsletter extension for Cartalyst Platform
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:platform-extension
Requires
- php: >=5.4.0
- cartalyst/composer-installers: 1.2.*
- platform/foundation: >=2.0 <5.0
README
Newsletter extension for Cartalyst Platform
Documentation
Example
The method on "sanatorium.newsletter.subscribe" route takes following parameters:
Therefore basic subscription form might look like this:
@if ( Cookie::get('has_newsletter') )
<p class="alert alert-success">
{{ trans('sanatorium/newsletter::messages.subscribed') }}
</p>
@else
<form method="POST" action="{{ route('sanatorium.newsletter.subscribe') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="email" name="email" class="form-control" placeholder="{{ trans('sanatorium/newsletter::common.email.placeholder') }}">
<button type="submit" class="btn btn-success">
{{ trans('sanatorium/newsletter::common.actions.subscribe') }}
</button>
</form>
@endif
TODO
- cron/button action to transfer contacts to mailchimp
- names to emails
Changelog
1.0.5 Added readme and example
Support
Support not available.