commit
1be2f6f90f
|
@ -32,7 +32,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
||||||
|
|
||||||
public function setPasswordAttribute($password)
|
public function setPasswordAttribute($password)
|
||||||
{
|
{
|
||||||
$this->attributes['password'] = Hash::make($password);
|
$this->attributes['password'] = Hash::needsRehash($password) ? Hash::make($password) : $password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function photoUrl(array $attributes)
|
public function photoUrl(array $attributes)
|
||||||
|
|
Loading…
Reference in New Issue