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
When the user attempts to access the page, redirect them to an auth page.
Do the ajax call then do the following in your php:
public function check(Request $request)
{
if(Hash::check($request->password, $user->password)) {
// They match
} else {
// They don't match
}
}
I havn't tested this so it might not work.