Optimizes some of the reminder routines; still have to test future repetitions although it should work fine.

This commit is contained in:
James Cole
2014-08-24 09:18:36 +02:00
parent 6e17c805c2
commit d6c92f8c3b
6 changed files with 144 additions and 227 deletions

View File

@@ -212,7 +212,7 @@ class PiggybankController extends BaseController
$piggyBank = $this->_repository->store($data);
if (!is_null($piggyBank->id)) {
Session::flash('success', 'New piggy bank "' . $piggyBank->name . '" created!');
Event::fire('piggybanks.storePiggy',[$piggyBank]);
Event::fire('piggybanks.store',[$piggyBank]);
return Redirect::route('piggybanks.index');
@@ -241,7 +241,7 @@ class PiggybankController extends BaseController
$piggyBank = $this->_repository->store($data);
if ($piggyBank->id) {
Session::flash('success', 'New piggy bank "' . $piggyBank->name . '" created!');
Event::fire('piggybanks.storeRepeated',[$piggyBank]);
Event::fire('piggybanks.store',[$piggyBank]);
return Redirect::route('piggybanks.index');