Make dd() of $oldpassword and $user->password, to see what data's printed
mcklayin said:
Make dd() of $oldpassword and $user->password, to see what data's printed
user->password is stored hashed. oldpassword is in cleartext.
if i hash oldpassword, the result is different from user->password (as expected, different salt).
no way to find a solution
nope, I use this standard function: $password=Hash::make($password); $newuser['password'] = $password; return User::create($newuser);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community