Downloads
Stars
Version
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
After installing the Laravel Activetrail, publish its config, using the vendor:publish
Artisan command:
php artisan vendor:publish --provider="Yehudafh\ActiveTrail\ActiveTrailServiceProvider"
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.
Thank you for considering contributing to the Activetrail.
Laravel Activetrail is open-sourced software licensed under the MIT license.