match hash password in laravel code example
Example 1: password match laravel
1. $user = User::where('email', request('email'))->first();
2. Hash::check(request('password'), $user->password);
This will return true or false based on whether or not the password matches.
Example 2: laravel hash password check
$data = User::find($id);
if( ! Hash::check( $data->password , Input::get('currPassword') ) )
{
return Redirect::to('/admin/profile')
->with('message', 'Current Password Error !')
->withInput();
}