1if (Hash::check('plain-text', $hashedPassword)) {
2 // The passwords match...
3}
1$data = User::find($id);
2if( ! Hash::check( $data->password , Input::get('currPassword') ) )
3{
4 return Redirect::to('/admin/profile')
5 ->with('message', 'Current Password Error !')
6 ->withInput();
7}
8