PHP code example of ariaieboy / filament-currency
1. Go to this page and download the library: Download ariaieboy/filament-currency library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ariaieboy / filament-currency example snippets
\Filament\Tables\Columns\TextColumn::make('money')
->currency('USD');
\Filament\Tables\Columns\TextColumn::make('money')
->currency('USD')
->summarize(\Filament\Tables\Columns\Summarizers\Sum::make()->currency());
\Filament\Tables\Columns\TextColumn::make('money')
->currency('USD')
->summarize(\Filament\Tables\Columns\Summarizers\Average::make()->currency());
\Filament\Infolists\Components\TextEntry::make('money')
->currency('USD');
\Filament\Forms\Components\TextInput::make('money')
->currencyMask(thousandSeparator: ',',decimalSeparator: '.',precision: 2)
bash
php artisan vendor:publish --tag=money