Wallets Manager
Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
Author:
Fady Mondy
Documentation
- Installation
- Usage
- Integration With Filament Accounts
- Testing
- Code Style
- PHPStan
- Other Filament Packages

Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
you can get more details about how to use this package in Bavix Wallet

#Installation
composer require tomatophp/filament-wallet
after installing your package, please run this command
php artisan filament-wallet:install
finally register 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 having 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 your accounts have a balance ready.
finally, register the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(\TomatoPHP\FilamentWallet\FilamentWalletPlugin::make()->useAccounts())
#Testing
if you like to run PEST testing just use this command
composer test
#Code Style
if you like to fix the code style just use this command
composer format
#PHPStan
if you like to check the code by PHPStan just use this command
composer analyse
#Other Filament Packages
Checkout our Awesome TomatoPHP
The author
Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
From the same author
Discord Notifications
Send notifications to a Discord channel using the native FilamentPHP Notification Facade class
Author:
Fady Mondy
Tenancy Multi-database
Tenancy multi-database integration for FilamentPHP
Author:
Fady Mondy
Menu Generator
Menu view generator using view component
Author:
Fady Mondy
Translations Manager
Manage your translation with DB and cache, you can scan an collect translation strings like `trans()` and `__()`, and translate them using UI
Author:
Fady Mondy
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission