Update 'src/Connect.php'
This commit is contained in:
parent
de0f263a46
commit
887d5239fd
|
@ -209,7 +209,7 @@ class Connect
|
||||||
$model = $this->resolveUser($data, $hasSoftDeletes);
|
$model = $this->resolveUser($data, $hasSoftDeletes);
|
||||||
|
|
||||||
if ($model->exists()) {
|
if ($model->exists()) {
|
||||||
if ($hasSoftDeletes) {
|
if ($hasSoftDeletes && $model->trashed()) {
|
||||||
$event = 'restore';
|
$event = 'restore';
|
||||||
} else {
|
} else {
|
||||||
$event = 'update';
|
$event = 'update';
|
||||||
|
|
Loading…
Reference in New Issue