mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
API can deal with attachments for more models. #2828
This commit is contained in:
@@ -645,4 +645,12 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
{
|
||||
return $account->locations()->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getAttachments(Account $account): Collection
|
||||
{
|
||||
return $account->attachments()->get();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user