tomatophp / filament-wallet
Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
Fund package maintenance!
3x1io
Requires
- php: ^8.1|^8.2
- bavix/laravel-wallet: ^10.0
- filament/filament: ^3.0.0
- tomatophp/console-helpers: ^1.1
- tomatophp/filament-accounts: ^1.0
This package is auto-updated.
Last update: 2024-04-18 14:27:16 UTC
README
Filament Wallet
Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
Screenshots
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.