imnpc/filament-wallet
最新稳定版本:2.0.3
Composer 安装命令:
composer require imnpc/filament-wallet
包简介
Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
关键字:
README 文档
README
Filament Wallet
Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
you can get more detials about how to use this package in Bavix Wallet
Screenshots
Installation
composer require imnpc/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
to add a wallet to your user model on your model add this trait
namespace App\Models; use Bavix\Wallet\Interfaces\Wallet; use Bavix\Wallet\Traits\HasWalletFloat; class Account extends Model implements Wallet { use HasWalletFloat; }
now your model is has a wallet on your resource add this action to your table
use TomatoPHP\FilamentWallet\Filament\Actions\WalletAction; public function table(Table $table): void { $table->actions([ WalletAction::make('wallet'), ]); }
now yo can charge the wallet of the user by clicking on the wallet action
Integration With Filament Accounts
first you need to install Filament Account Builder
composer require tomatophp/filament-account
then you need to publish the model file
php artisan vendor:publish --tag="filament-accounts-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\HasWalletFloat; class Account extends Model implements Wallet { use HasWalletFloat; }
now you accounts has a balance ready.
finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(\TomatoPHP\FilamentWallet\FilamentWalletPlugin::make()->useAccounts())
Other Filament Packages
Checkout our Awesome TomatoPHP
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-07




