PHP Class Dimsav\IpService\IpService

Mostrar archivo Open project: dimsav/laravel-ip-service

Public Methods

Method Description
__construct ( Illuminate\Config\Repository $config, Illuminate\Http\Request $request )
getCountryCodeFromClientIp ( ) : string | null
getCountryCodeFromIp ( $ip ) : string | null

Method Details

__construct() public method

public __construct ( Illuminate\Config\Repository $config, Illuminate\Http\Request $request )
$config Illuminate\Config\Repository
$request Illuminate\Http\Request

getCountryCodeFromClientIp() public method

getCountryCodeFromIp() public method

public getCountryCodeFromIp ( $ip ) : string | null
$ip
return string | null