App\Ninja\Transformers\AccountTransformer::includeTaxRates PHP 메소드

includeTaxRates() 공개 메소드

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