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

includePayments() 공개 메소드

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