Giter Club home page Giter Club logo

laraonboarding's Introduction

Laravel package for sending scheduled emails to registered users, on their 2th, 4th or Xth day after registration. Typical usage is "onboarding" emails during free trial period or first days of using your application.

LaraOnboarding screenshot


Installation

  1. composer require laraveldaily/LaraOnboarding
  2. php artisan vendor:publish - will publish configuration and view files
  3. php artisan migrate - it will add unsubscribed_at field to your users table
  4. Fill your config/onboarding.php configuration file.

Usage and configuration

Once a day run a command php artisan onboarding:send which will send the emails to all users registered X days ago, according to config file.

By default, your file config/onboarding.php will contain two emails to send:

/**
 * Days after the user registration, email subject and email template for the specified case
 */
return [
    [
        'template' => 'laraveldaily.onboarding.emails.example-mail',
        'days' => 2,
        'subject' => 'Second day email',
    ],
    [
        'template' => 'laraveldaily.onboarding.emails.example-mail',
        'days' => 4,
        'subject' => 'Fourth day email',
    ],
    // add more in the same format...
];

This configuration means that when running php artisan onboarding:send, system will send an email with template example-mail and subject 'Second day email' to users who registered 2 days ago (by users.created_at), and also example-mail to users who registered 4 days ago.

So change these according to your needs.

Email templates can be found in the folder resources/views/laraveldaily/onboarding/emails.


License

The MIT License (MIT). Please see License File for more information.

laraonboarding's People

Contributors

laraveldaily avatar povilaskorop avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.