sanatorium/newsletter

There is no license information available for the latest version (3.0.4) of this package.

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

3.0.4 2016-10-02 16:31 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:56:12 UTC


README

Newsletter extension for Cartalyst Platform

Documentation

Example

The method on "sanatorium.newsletter.subscribe" route takes following parameters:

  • email

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.