Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 2d26521

Browse files
committed
Merge pull request #153 from unstoppablecarl/master
Including observable events for 'validating' and 'validated'
2 parents a96a84f + e7c1659 commit 2d26521

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/LaravelBook/Ardent/Ardent.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,4 +882,15 @@ public function newQuery($excludeDeleted = true) {
882882

883883
return $builder;
884884
}
885+
886+
public function getObservableEvents(){
887+
return array_merge(
888+
array(
889+
'creating', 'created', 'updating', 'updated',
890+
'deleting', 'deleted', 'saving', 'saved',
891+
'restoring', 'restored', 'validating', 'validated'
892+
),
893+
$this->observables
894+
);
895+
}
885896
}

0 commit comments

Comments
 (0)