tapp / filament-country-code-field
丝线国家代码字段。
v1.0.0
2024-06-26 20:20 UTC
Requires
- php: ^8.1
- filament/filament: ^3.0-stable
This package is auto-updated.
Last update: 2024-09-19 04:34:48 UTC
README
一个用于Laravel Filament的国家代码选择表单字段、表格列和表格过滤器。
安装
composer require tapp/filament-country-code-field
使用方法
表单字段
添加到您的Filament资源
use Tapp\FilamentCountryCodeField\Forms\Components\CountryCodeSelect; public static function form(Form $form): Form { return $form ->schema([ // ... CountryCodeSelect::make('country_code'), // ... ]); }
外观
表格列
use Tapp\FilamentCountryCodeField\Tables\Columns\CountryCodeColumn; public static function table(Table $table): Table { return $table ->columns([ //... CountryCodeColumn::make('country_code'), ]) // ... }
表格过滤器
use Tapp\FilamentCountryCodeField\Tables\Filters\CountryCodeFilter; public static function table(Table $table): Table { return $table //... ->filters([ CountryCodeFilter::make('country_code'), // ... ]) }