mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 04:18:50 +00:00
Firefly is now capable of adding a transaction. Untested [skip-ci]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user