PHP code example of parfaitementweb / filament-country-field
1. Go to this page and download the library: Download parfaitementweb/filament-country-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/ */
parfaitementweb / filament-country-field example snippets
use Parfaitementweb\FilamentCountryField\Forms\Components\Country;
Country::make('country')
use Parfaitementweb\FilamentCountryField\Tables\Columns\CountryColumn;
CountryColumn::make('country')
use Parfaitementweb\FilamentCountryField\Forms\Components\Country;
Country::make('country')
->exclude(['NL'])
->add(['MA' =>'Mars'])
->map(['GB' => 'UK', 'GF' => 'FR'])
bash
php artisan countries-field:clear