Download the PHP package geowrgetudor/laravel-balance without Composer
On this page you can find all versions of the php package geowrgetudor/laravel-balance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download geowrgetudor/laravel-balance
More information about geowrgetudor/laravel-balance
Files in geowrgetudor/laravel-balance
Package laravel-balance
Short Description A credit system / balance for Laravel.
License MIT
Homepage https://github.com/geowrgetudor/laravel-balance
Informations about the package laravel-balance
Add a balance / credit system to any Laravel model
This is a small package that adds a credit system that you might need for various reasons:
- awarding users based on their activity
- rewards in credits instead of real money
- rewards in credits for referrals
- etc.
Installation
Install the package via composer:
Publish and run the migrations with:
If you decide to change the default migration table name, make sure you publish the config file and change the table name there too:
This is the contents of the published config file:
Prepare your model
Add the HasBalance
trait to any model you need to.
Usage
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- George Tudor
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-balance with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0|^11.0