The Geek Credit Package simplifies credit management and in-app purchases in Laravel apps. With transaction history and customizable features, it's ideal for implementing credit-based systems.
You can install the package via composer:
composer require ageekdev/geek-credit
You can publish the config file with:
php artisan vendor:publish --provider="Ageekdev\GeekCredit\GeekCreditServiceProvider" --tag="geek-credit-config"
You can publish the migration with:
php artisan vendor:publish --provider="Ageekdev\GeekCredit\GeekCreditServiceProvider" --tag="geek-credit-migrations"
Add the HasCredit trait on App\User model or any model who acts as user in your app.
use Illuminate\Database\Eloquent\Model;
use Ageekdev\GeekCredit\Traits\HasCredit;
class UserModel extends Model
{
use HasCredit;
...
}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.