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
1$password = Input::get('passwordformfield'); // password is form field
2$hashed = Hash::make($password);
3
1$data = User::find($id);
2if( ! Hash::check( Input::get('currPassword') , $data->password ) )
3{
4 return Redirect::to('/admin/profile')
5 ->with('message', 'Current Password Error !')
6 ->withInput();
7}