app/Repository/Traits/User/CrudTrait.php 1 location
|
@@ 98-102 (lines=5) @@
|
| 95 |
|
*/ |
| 96 |
|
public function updateUser(array $info = []) |
| 97 |
|
{ |
| 98 |
|
if ($info['password']) { |
| 99 |
|
$info['password'] = Hash::make($info['password']); |
| 100 |
|
} elseif (empty($info['password'])) { |
| 101 |
|
unset($info['password']); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
return $this->update($info); |
| 105 |
|
} |
app/Repository/User/UpdaterRepository.php 1 location
|
@@ 82-86 (lines=5) @@
|
| 79 |
|
*/ |
| 80 |
|
public function update(array $attributes = [], array $options = []) |
| 81 |
|
{ |
| 82 |
|
if ($attributes['password']) { |
| 83 |
|
$attributes['password'] = Hash::make($attributes['password']); |
| 84 |
|
} elseif (empty($attributes['password'])) { |
| 85 |
|
unset($attributes['password']); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
return $this->model->update($attributes, $options); |
| 89 |
|
} |