Firefly is now capable of adding a transaction. Untested [skip-ci]

This commit is contained in:
James Cole
2014-07-15 11:04:53 +02:00
parent c2948b2a29
commit a1fb4bdb60
9 changed files with 164 additions and 25 deletions

View File

@@ -3,6 +3,23 @@
namespace Firefly\Storage\Budget;
class EloquentBudgetRepository implements BudgetRepositoryInterface {
class EloquentBudgetRepository implements BudgetRepositoryInterface
{
public function getAsSelectList()
{
$list = \Auth::user()->budgets()->get();
$return = [];
foreach ($list as $entry) {
$return[intval($entry->id)] = $entry->name;
}
return $return;
}
public function find($id)
{
return \Auth::user()->budgets()->find($id);
}
}