PHP code example of tapp / filament-country-code-field
1. Go to this page and download the library: Download tapp/filament-country-code-field 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/ */
tapp / filament-country-code-field example snippets
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'),
// ...
])
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.