Method to find an account.

This commit is contained in:
James Cole 2015-12-04 06:56:45 +01:00
parent a17b7025f1
commit 55be174037
2 changed files with 17 additions and 0 deletions

View File

@ -643,4 +643,14 @@ class AccountRepository implements AccountRepositoryInterface
return $journal;
}
/**
* @param $accountId
*
* @return Account
*/
public function find($accountId)
{
return Auth::user()->accounts()->findOrNew($accountId);
}
}

View File

@ -24,6 +24,13 @@ interface AccountRepositoryInterface
*/
public function countAccounts(array $types);
/**
* @param $accountId
*
* @return Account
*/
public function find($accountId);
/**
* @param Account $account
* @param Account $moveTo