Download the PHP package cawakharkov/laravel-balance without Composer
On this page you can find all versions of the php package cawakharkov/laravel-balance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cawakharkov/laravel-balance
More information about cawakharkov/laravel-balance
Files in cawakharkov/laravel-balance
Download cawakharkov/laravel-balance
More information about cawakharkov/laravel-balance
Files in cawakharkov/laravel-balance
Vendor cawakharkov
Package laravel-balance
Short Description Laravel package that provide user balance and transactions functionality for Laravel 5
License MIT
Package laravel-balance
Short Description Laravel package that provide user balance and transactions functionality for Laravel 5
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-balance
Laravel package that provides user balance and transactions functionality
Now working only with Laravel > 5.3, for 5.2 will be created separet branch
User balance = sum of transactions
Installation
- add to your config/app.php
- add (view composer) to your config/app.php
- publish config
- run migrations
Configuration
- 'prefix' - route prefix for base transactions controller
- 'user' - User class
- 'layout' - layout that will be extended in views
- 'list_view' - list transaction view
- 'compose' - array of views where need to inject user transactions
Usage
- Add interface to your user model
- Add trait to your user model or implement transactions() and balance() methods by your own
-
Inject in controller to have access to transaction repository.
- If you want to want to echo user transactions, just add view to composer section of config, and view composer will inject $transaction variable
All versions of laravel-balance with dependencies
PHP Build Version
Package Version
The package cawakharkov/laravel-balance contains the following files
Loading the files please wait ....