LaravelPackages.net
Acme Inc.
Toggle sidebar
payamava/wallet

This package is designed to manage users wallet

58
0
v1.0.6
About payamava/wallet

payamava/wallet is a Laravel package for this package is designed to manage users wallet. It currently has 0 GitHub stars and 58 downloads on Packagist (latest version v1.0.6). Install it with composer require payamava/wallet. Discover more Laravel packages by payamava or browse all Laravel packages to compare alternatives.

Last updated

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()
Comments