getIPBasedCountry() public method

Returns the ISO 3166-1 alpha-2 two letter country code for the client IP. If the IP can't be resolved it returns false.
public getIPBasedCountry ( ) : boolean | string
return boolean | string
Example #1
0
 /**
  * Returns the tax rate for the given country.
  *
  * @return \Illuminate\Http\Response
  */
 public function getCountryCode()
 {
     return ['country_code' => $this->calculator->getIPBasedCountry()];
 }