tapp / filament-country-code-field
Filament country code field.
Fund package maintenance!
TappNetwork
Installs: 1 102
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: ^8.1
- filament/filament: ^3.0-stable
This package is auto-updated.
Last update: 2024-12-19 05:04:58 UTC
README
A country code select form field, table column, and table filter for Laravel Filament.
Installation
composer require tapp/filament-country-code-field
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
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\CountryCodeFilter; public static function table(Table $table): Table { return $table //... ->filters([ CountryCodeFilter::make('country_code'), // ... ]) }