Download the PHP package laraditz/wallet without Composer
On this page you can find all versions of the php package laraditz/wallet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laraditz/wallet
More information about laraditz/wallet
Files in laraditz/wallet
Package wallet
Short Description A simple virtual wallet or e-wallet for Laravel
License MIT
Homepage https://github.com/laraditz/wallet
Informations about the package wallet
Laravel Wallet
A simple virtual wallet or e-wallet for Laravel.
Installation
You can install the package via composer:
Run the migration command to create the necessary database table.
Usage
Add the HasWallets
trait to your model.
Create your default wallet. If you use a different name, you may need to set the WALLET_DEFAULT
in your .env
and set the value to the slug value. This is optional and only useful when you want to retrieve your wallet but do not want to specify the wallet slug.
You also can specify many other setting when creating wallet type as below:-
With that we are set. You can now deposit, withdraw or transfer using your e-wallet.
By default when you call getWallet
, it will create the user wallet if it's not already been created. You wallet will be assigned a random unique wallet address value. But it is also possible for you to create the wallet with your own address value.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.