tomatophp/filament-withdrawals
最新稳定版本:v4.0.0
Composer 安装命令:
composer require tomatophp/filament-withdrawals
包简介
Manage your wallet withdrawals in FilamentPHP
README 文档
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
统计信息
- 总下载量: 811
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-02






