PHPackages                             notchafrica/avbalance - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. notchafrica/avbalance

ActiveLibrary[Database &amp; ORM](/categories/database)

notchafrica/avbalance
=====================

Maintains a history of balance movements in the eloquent models. This simple package will keep track of the balance of your models. You can increase, decrease, reset and set the balance. It is also possible to check if a model has a positive balance or no balance.

1.0(2y ago)04MITPHPPHP ^8.2

Since Oct 2Pushed 2y agoCompare

[ Source](https://github.com/notchafrica/avbalance)[ Packagist](https://packagist.org/packages/notchafrica/avbalance)[ Docs](https://github.com/mreduar/laravel-balance)[ RSS](/packages/notchafrica-avbalance/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Balance
===============

[](#laravel-balance)

Maintains a history of balance movements in the eloquent models. This simple package will keep track of the balance of your models. You can increase, decrease, reset and set the balance. It is also possible to check if a model has a positive balance or no balance.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mreduar/laravel-balance
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="MrEduar\Balance\BalanceServiceProvider" --tag="migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="MrEduar\Balance\BalanceServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
