In laravel I want to check if user enter current password than check with that password which is store in database in that user data. If correct than continue otherwise give
Just do it
public function authenticateEmployee(array $data){
$email = $data['email'];
$password = $data['password'];
$user = User::where('email', '=', $email)->first(); //get db User data
if(Hash::check($password, $user->password)) {
return response()->json(['status'=>'false','message'=>'password is correct']);
} else {
return 'false';
}
}