PHP code example of mohammadhprp / filament-ip-to-country-flag-column
1. Go to this page and download the library: Download mohammadhprp/filament-ip-to-country-flag-column 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/ */
mohammadhprp / filament-ip-to-country-flag-column example snippets
use Mohammadhprp\IPToCountryFlagColumn\Columns\IPToCountryFlagColumn;
IPToCountryFlagColumn::make('client_ip');
IPToCountryFlagColumn::make('client_ip')->flagPosition('left');
IPToCountryFlagColumn::make('client_ip')->hideFlag();
IPToCountryFlagColumn::make('client_ip')->location(position: 'above');
IPToCountryFlagColumn::make('client_ip')->location(separator: '-');
IPToCountryFlagColumn::make('client_ip')
->hideCountry()
->hideCity();