doLog local
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
@ -5,7 +5,9 @@
|
||||
"require": {
|
||||
"j4mie/paris": "^1.5",
|
||||
"nesbot/carbon": "^2.28",
|
||||
"danielstjules/stringy": "^3"
|
||||
"danielstjules/stringy": "^3",
|
||||
"aldarien/models": "dev-master",
|
||||
"incoviba/auth": "dev-master"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8.5",
|
||||
@ -23,5 +25,15 @@
|
||||
"Incoviba\\Common\\": "common",
|
||||
"Incoviba\\": "src"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "//192.168.1.100/git/models.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "//192.168.1.100/git/auth.git"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user