All new stufs!

This commit is contained in:
Sander Dorigo
2014-10-29 10:30:52 +01:00
parent 8ad0d7af93
commit 2f9c383004
19 changed files with 1114 additions and 10 deletions

View File

@@ -16,6 +16,9 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
{
use SwitchUser;
/**
*
*/
public function __construct()
{
$this->setUser(\Auth::user());
@@ -423,4 +426,14 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
{
// TODO: Implement findByWhat() method.
}
/**
* @param array $ids
*
* @return Collection
*/
public function getByIds(array $ids)
{
return $this->getUser()->accounts()->whereIn('id', $ids)->get();
}
}