Always Hash Password

Submitted by HakShinKen - 10 years ago

When you save the password fields, it's been hashed every time. You have to put it in your User model. Thanks to Karl Merkli to add needsRehash

public function setPasswordAttribute($value) 
{
    $this->attributes['password'] = (Hash::needsRehash($value) ? Hash::make($value) : $value);
}