For Laravel change password I did like this but why it is not working.. I have done login page, registration everything working. But this giving me lot of trouble. Below is my code.
$returnValue = DB::table('users')->where('users_id', $users_id)->where('password', bcrypt($request->opassword))->update(['password'=>bcrypt($request->npassword)]);
if($returnValue >= 1)
$success['message'] = "Password updated successfully..";
$error = "Entered Old password is not valid..";
from Newest questions tagged laravel-5 – Stack Overflow https://ift.tt/2yWgLqU