定制 tapp/filament-country-code-field 二次开发

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

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

tapp/filament-country-code-field

最新稳定版本:v2.0.1

Composer 安装命令:

composer require tapp/filament-country-code-field

包简介

Filament country code field.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status Code Style Action Status Total Downloads

A country code select form field, table column, and table filter for Laravel Filament.

Version Compatibility

Filament Filament Country Code Field
3.x 1.x
4.x 2.x

Installation

You can install the package via Composer:

For Filament 3

composer require tapp/filament-country-code-field:"^1.0"

For Filament 4

composer require tapp/filament-country-code-field:"^2.0"

You can publish the config file with:

php artisan vendor:publish --tag="filament-country-code-field-config"

Usage

Form Field

Add to your Filament resource:

use Tapp\FilamentCountryCodeField\Forms\Components\CountryCodeSelect;

public static function form(Form $form): Form
{
    return $form
        ->schema([
            // ...
            CountryCodeSelect::make('country_code'),
            // ...
        ]);
}

Appareance

Filament Country Code Field

Filament Country Code Table Column and Filter

Table Column

use Tapp\FilamentCountryCodeField\Tables\Columns\CountryCodeColumn;

public static function table(Table $table): Table
{
    return $table
        ->columns([
            //...
            CountryCodeColumn::make('country_code'),
        ])
        // ...
}

Table Filter

use Tapp\FilamentCountryCodeField\Tables\Filters\CountryCodeSelectFilter;

public static function table(Table $table): Table
{
    return $table
        //...
        ->filters([
            CountryCodeSelectFilter::make('country_code'),
            // ...
        ])
}

统计信息

  • 总下载量: 12.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 4
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-25