payamava/wallet
Composer 安装命令:
composer require payamava/wallet
包简介
This package is designed to manage users wallet
README 文档
README
A package for managing wallets of users
Installing
Begin by pulling in the package through Composer.
composer require payamava/wallet
Next, if using Laravel 5, include the service provider within your config/app.php file.
'providers' => [
payamava\wallet\WalletServiceProvider::class,
];
php artisan vendor:publish
php artisan migrate
Usage
get log wallet for special user
$user->wallet()
Increase or decrease the amount of wallet
$user->cash(1000) //increase
$user->cash(-1000) //decrease
Get total Cash
$user->totalCash()
Getting the details of the first charge of the account
$user->firstCash()
Getting the details of the last charge of the account
$user->lastCash()
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-08