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$data = User::find($id);
2if( ! Hash::check( $data->password , Input::get('$2y$10$vWH/CO.dk8q48PpAJQ1XKeD0kZEvkFHxnUQi8n3Tz2UnqgS6N/cGa') ) )
3{
4 return Redirect::to('/admin/profile')
5 ->with('message', 'Current Password Error !')
6 ->withInput();
7}
8