public function deleted($model) { // Verify that the model implements our required traits $traits = class_uses($model); if (in_array('Sleavely\\Datadiff\\DatadiffTrait', $traits)) { \Datadiff::deleteModel($model); } else { throw new Exceptions\TraitNotFoundException(); } }
public function diff($version = null) { return \Datadiff::getModelCommit($this, $version); }