yehudafh/active-trail

active-trail.

Downloads

1738

Stars

0

Version

v1.1.1

Laravel Activetrail

Installation

Laravel Activetrail requires Laravel 5.5 or higher, and PHP 7.0+.

You may use Composer to install Laravel Activetrail into your Laravel project:

composer require yehudafh/active-trail

Configuration

After installing the Laravel Activetrail, publish its config, using the vendor:publish Artisan command:

php artisan vendor:publish --provider="Yehudafh\ActiveTrail\ActiveTrailServiceProvider"

Basic Usage

Add or Update user in activetrail:

ActiveTrail::email('[email protected]')
    # Optional ->
    // ->sms('+972000000000')
    // ->status()
    // ->fullname('test test') #or  ->firstName()->lastName()
    // ->street()
    // ->zipCode()
    // ->city()
    // ->phone1()
    // ->phone2()
    // ->fax()
    // ->birthday()
    // ->anniversary()
    // ->isDoNotMail()
    // ->isDeleted()
    ->update();

Update user groups:

ActiveTrail::email('[email protected]')
    ->addToGroup(1234);

ActiveTrail::email('[email protected]')
    ->addToGroups([1234, 45678]);

ActiveTrail::email('[email protected]')
    ->removeFromGroups([1234, 45678]);

Update user email

ActiveTrail::updateEmail('[email protected]', '[email protected]');

Unsubscribed User:

ActiveTrail::email('[email protected]')->unsubscribed();

For more info found in the ActiveTrail Documentation.

Contributing

Thank you for considering contributing to the Activetrail.

License

Laravel Activetrail is open-sourced software licensed under the MIT license.

yehudafh

Author

yehudafh