protected function normalizeCauser($modelOrId) : Model
{
if ($modelOrId instanceof Model) {
return $modelOrId;
}
if ($model = $this->auth->getProvider()->retrieveById($modelOrId)) {
return $model;
}
throw CouldNotLogActivity::couldNotDetermineUser($modelOrId);
}