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

includePayments() public method

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