app/Repository/Traits/User/CrudTrait.php 1 location
|
@@ 96-105 (lines=10) @@
|
| 93 |
|
* |
| 94 |
|
* @return Eloquent\Model |
| 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 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* Update user messages setting. |
app/Repository/User/Updater.php 1 location
|
@@ 81-90 (lines=10) @@
|
| 78 |
|
* |
| 79 |
|
* @return Eloquent\Model |
| 80 |
|
*/ |
| 81 |
|
public function update(array $attributes = []) |
| 82 |
|
{ |
| 83 |
|
if ($attributes['password']) { |
| 84 |
|
$attributes['password'] = Hash::make($attributes['password']); |
| 85 |
|
} elseif (empty($attributes['password'])) { |
| 86 |
|
unset($attributes['password']); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
return $this->model->update($attributes); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* Update user messages setting. |