App\Ninja\Transformers\AccountTransformer::includeTaxRates PHP Method

includeTaxRates() public method

public includeTaxRates ( App\Models\Account $account ) : League\Fractal\Resource\Collection
$account App\Models\Account
return League\Fractal\Resource\Collection
    public function includeTaxRates(Account $account)
    {
        $transformer = new TaxRateTransformer($account, $this->serializer);
        return $this->includeCollection($account->tax_rates, $transformer, 'taxRates');
    }