tomatophp/filament-wallet

Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder

Fund package maintenance!
3x1io

v1.0.0 2024-04-18 14:26 UTC

This package is auto-updated.

Last update: 2024-04-18 14:27:16 UTC


README

Screenshot

Filament Wallet

Latest Stable Version PHP Version Require License Downloads

Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder

Screenshots

Account Wallet Charge A Wallet Wallets List Transactions List

Installation

composer require tomatophp/filament-wallet

after install your package please run this command

php artisan filament-wallet:install

finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php

->plugin(\TomatoPHP\FilamentWallet\FilamentWalletPlugin::make())

Usage

you need first publish Account Model using this command

php artisan vendor:publish --tag="filament-wallet-model"

then you can use this model in your project and attach this traits to your model

namespace  App\Models;

use Bavix\Wallet\Interfaces\Wallet;
use Bavix\Wallet\Traits\HasWallet;

class Account extends Model implements Wallet
{
    use HasWallet;
}

now you accounts has a balance ready.

you can get more detials about how to use this package in Bavix Wallet

Publish Assets

you can publish config file by use this command

php artisan vendor:publish --tag="filament-wallet-config"

you can publish views file by use this command

php artisan vendor:publish --tag="filament-wallet-views"

you can publish languages file by use this command

php artisan vendor:publish --tag="filament-wallet-lang"

you can publish migrations file by use this command

php artisan vendor:publish --tag="filament-wallet-migrations"

Support

you can join our discord server to get support TomatoPHP

Docs

you can check docs of this package on Docs

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

Please see SECURITY for more information about security.

Credits

License

The MIT License (MIT). Please see License File for more information.