定制 tomatophp/filament-withdrawals 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomatophp/filament-withdrawals

最新稳定版本:v4.0.0

Composer 安装命令:

composer require tomatophp/filament-withdrawals

包简介

Manage your wallet withdrawals in FilamentPHP

README 文档

README

Screenshot

Filament Withdrawals

Latest Stable Version License Downloads

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

Withdrawal Methods Withdrawal Methods Fields Withdrawal Methods Requests Withdrawal Requests Withdrawal Requests View Withdrawal Requests Edit

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-02