doLog local

This commit is contained in:
2019-12-26 14:44:34 -03:00
parent 5f3efcf814
commit 0289ae6fea
2 changed files with 18 additions and 3 deletions

View File

@ -34,7 +34,10 @@ class Model extends \Model
$changes[$column] = ['column' => $column, 'old' => $old->$column, 'new' => $value];
}
$action = '[' . get_called_class() . ']';
doLog($user, $action, $changes);
$this->doLog($user, $action, $changes);
}
protected function doLog($user, $action, $variables) {
App\Service\Register::log($user, $action, $variables);
}
public function getId()
{