diff --git a/src/LaravelBook/Ardent/Ardent.php b/src/LaravelBook/Ardent/Ardent.php old mode 100644 new mode 100755 index 1377620..49386fd --- a/src/LaravelBook/Ardent/Ardent.php +++ b/src/LaravelBook/Ardent/Ardent.php @@ -232,6 +232,13 @@ public static function boot() { } } + public function getObservableEvents() { + return array_merge( + parent::getObservableEvents(), + array('validating', 'validated') + ); + } + /** * Register a validating model event with the dispatcher. * @@ -882,15 +889,4 @@ public function newQuery($excludeDeleted = true) { return $builder; } - - public function getObservableEvents(){ - return array_merge( - array( - 'creating', 'created', 'updating', 'updated', - 'deleting', 'deleted', 'saving', 'saved', - 'restoring', 'restored', 'validating', 'validated' - ), - $this->observables - ); - } }