public function isAllowCountry(array $codes = ['*'])
    {
        try {
            return in_array('*', $codes, true)
                || in_array(Utility::isoCode($this->ip()), $codes, true);
        } catch (\Exception $e) {
            return true;
        }
    }
public function isAllowCountry(array $codes = ['*'])
    {
        try {
            return in_array('*', $codes, true)
                || in_array(Utility::isoCode($this->ip()), $codes, true);
        } catch (\Exception $e) {
            return true;
        }
    }
public function isAllowCountry ( array $ codes = [ '*' ] ) { try { return in_array ( '*' , $ codes , true ) || in_array ( Utility :: isoCode ( $ this -> ip ( ) ) , $ codes , true ) ; } catch ( \ Exception $ e ) { return true ; } }
Determine the request ip address is in allow countries.

@param array $codes

@return bool
Determine the request ip address is in allow countries .