Mpociot\VatCalculator\Http\Controller::getTaxRateForLocation PHP Method

getTaxRateForLocation() public method

Returns the tax rate for the given country code and postal code.
public getTaxRateForLocation ( $countryCode = null, $postalCode = null ) : Illuminate\Http\Response
return Illuminate\Http\Response
    public function getTaxRateForLocation($countryCode = null, $postalCode = null)
    {
        return ['tax_rate' => $this->calculator->getTaxRateForLocation($countryCode, $postalCode)];
    }