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

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

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

033PHP

Since Oct 31Pushed 2y agoCompare

[ Source](https://github.com/ifedeev/laravel-balance)[ Packagist](https://packagist.org/packages/ifedeev/laravel-balance)[ RSS](/packages/ifedeev-laravel-balance/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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:

```
