How to check the current password and store password in Laravel

In this article, I will share with you how to check the current password and store password in Laravel

We will used Hash facade and this function which allows you to check whether the old password entered by user is correct or not. 

use Illuminate\Support\Facades\Hash;
if (Hash::check("parameter 1", "parameter 2")) {
 //add logic here
}

it will return true if old password has been entered correctly and you can add your logic accordingly.

I hope it will help you.