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

Commit a01921b

Browse files
committed
The model will always be an eloquent instance.
1 parent 1c0001e commit a01921b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Traits/ImportsUsers.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ protected function syncModelFromAdldap(User $user, Authenticatable $model)
100100
$model->{$modelField} = $value;
101101
}
102102

103-
if ($model instanceof Model) {
104-
$model->save();
105-
}
103+
$model->save();
106104

107105
return $model;
108106
}

0 commit comments

Comments
 (0)