I want to change the password encryption from bcrypt to encrypt though the password successfully Updated, but I can't login using the new password.
public function updatePassword(Request $request)
{
$user = User::find($request->id);
$user->password = encrypt($request->newPassword);
$user->save();
}