Rewardzone Package
Enhance your upcoming offers by building competency files and rewarding customer loyalty with points they can redeem for benefits.
Installation
bash
composer require obelaw/rewardzone
You need to migrate the package tables.
bash
php artisan migrate
How to use
php
<?php
use Obelaw\RewardZone\Traits\HasProfile;
class User extends Authenticatable
{
use HasProfile;
}
Quick use
php
$user = User::first();
$config = new PointsConfig();
$profile = new ProfileManagement($user, $config);
$profile->addPoint(points:'1000', description:'Account registration bonus');