wuwx / filament-currency-field
Filament currency field.
v3.0.0
2023-09-11 15:05 UTC
Requires
- php: ^8.1
- filament/filament: ^3.0-stable
- moneyphp/money: ^4.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A Currency select field for Laravel Filament.
Requirements
- PHP 8.1+
- Filament 3, 4 or 5
Installation
composer require wuwx/filament-currency-field:"^3.0"
Usage
Form Field
Add to your Filament resource:
use Wuwx\FilamentCurrencyField\Forms\Components\CurrencySelect; public static function form(Form $form): Form { return $form ->schema([ // ... CurrencySelect::make('currency'), // ... ]); }
Options are the ISO 4217 currency codes, so the field stores the code (e.g. USD).
Testing
composer test