public function postDestroy()
 {
     $warranty = Warranty::find(Input::get('id'));
     if ($warranty) {
         $warranty->delete();
         return Redirect::to('warranty')->with('message', 'Request Deleted');
     }
     return Redirect::to('warranty')->with('message', 'Something went wrong, please try again');
 }
 public function getView($id)
 {
     return View::make('warranties.view')->with('warranty', Warranty::find($id));
 }