PHPackages                             cyberwolfstudio/laravel-balance - 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. cyberwolfstudio/laravel-balance

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

cyberwolfstudio/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.

1.1.0(1y ago)04.4k↓50%MITPHPPHP ^8.0

Since Aug 23Pushed 9mo agoCompare

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

READMEChangelogDependencies (8)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 cyberwolfstudio/laravel-balance
```

You can publish and run the migrations with:

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

You can publish the config file with:

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

This is the contents of the published config file:

```
