I am having the following problem. I create a user and password with a seeder. The user is created fine and the password is stored in the db encrypted. And I can login. When I try to change this password, I notice that the string for the password in the db changes (something else is encrypted), but I can't login with the new password nor with the old one.
I have this in the model:
public function setPasswordAttribute($password)
{
$this->attributes['password'] = Hash::make($password);
}
and in the controller to set the new password I have this
$user = AuthAction::$user;
$user->password = $subscriberData['password'];
$user->save();
Just one final note, the model that I am using for the user is called Subscriber, and when I do a var_dump of the $user variable I can see that it's an instance of the model subscriber.