Moved some of the events so they will properly fire. Noticed the budget controllers are a bit of a mess. Next project.

This commit is contained in:
James Cole
2014-08-18 11:53:09 +02:00
parent 9db8f78cd8
commit 5ac790433b
3 changed files with 10 additions and 1 deletions

View File

@@ -86,6 +86,8 @@ class BudgetController extends BaseController
$budgets = $this->_repository->get();
$today = new Carbon;
Event::fire('budgets.change');
return View::make('budgets.indexByBudget')->with('budgets', $budgets)->with('today', $today);
}
@@ -100,6 +102,8 @@ class BudgetController extends BaseController
$set = $this->_repository->get();
$budgets = $this->_budgets->organizeByDate($set);
Event::fire('budgets.change');
return View::make('budgets.indexByDate')->with('budgets', $budgets);