Sounds like an odd one. What happens if you use file based sessions?
To improve your code a little add this to the User model and remove the line
// Add this
public function setPasswordAttribute($value)
{
$this->attributes['password'] = Hash::make($value);
}
// Remove this
$user->password = Hash::make($pw);
And for the authentication problem could you share the code belonging to that, so we could help you with that.
T2theC said:
Sounds like an odd one. What happens if you use file based sessions?
I have tried all session drivers, but this didn't help.
eriktisme said: And for the authentication problem could you share the code belonging to that, so we could help you with that.
I have added the login code.
Update: I noticed that passwords get rehashed when logging in. Could it be possible that something is happening here?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community