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