public static function needsRehash($hashedValue, $options = array()) { return \Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options); }
/** * Set the user's password. * * @param string $value * * @return string */ public function setPasswordAttribute($value) { if (\Hash::needsRehash($value)) { $value = bcrypt($value); } $this->attributes['password'] = $value; }