tomatophp / filament-withdrawals
Manage your wallet withdrawals in FilamentPHP
Fund package maintenance!
3x1io
Requires
- php: ^8.1|^8.2
- filament/filament: ^3.0.0
- tomatophp/console-helpers: ^1.1
- tomatophp/filament-wallet: ^v1.0
README
Filament Withdrawals
Manage your withdrawals in Filament
Installation
composer require tomatophp/filament-withdrawals
after install your package please run this command
php artisan filament-withdrawals:install
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(\TomatoPHP\FilamentWithdrawals\FilamentWithdrawalsPlugin::make())
Screenshots
Add Form Field Type
you can add more fields to the form builder by use this method on your provider.
use TomatoPHP\FilamentWithdrawals\Services\FilamentWithdrawalFormFields; use TomatoPHP\FilamentWithdrawals\Services\Contracts\WithdrawalFormFieldType; FilamentWithdrawalFormFields::register([ WithdrawalFormFieldType::make('code') ->className(CodeEditor::class) ->color('warning') ->icon('heroicon-s-code-bracket-square') ->label('Code Editor'), ]);
Use Your Form Builder
after create your form you can use it by id
like this
use TomatoPHP\FilamentWithdrawals\Services\FilamentWithdrawalFormBuilder; FilamentWithdrawalFormBuilder::make(1)->build()
Use Form Requests to Submit your form data
you can use form requests to submit your form data by use this method on your provider.
use TomatoPHP\FilamentWithdrawals\Services\FilamentWithdrawalFormBuilder; FilamentWithdrawalFormBuilder::make(1)->send($data)
Publish Assets
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-withdrawals-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-withdrawals-migrations"
Other Filament Packages
Checkout our Awesome TomatoPHP