Example #1
0
 /**
  * Update the specified podup in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id)
 {
     $podup = PodUp::findOrFail($id);
     $validator = Validator::make($data = Input::all(), PodUp::$rules);
     if ($validator->fails()) {
         return Redirect::back()->withErrors($validator)->withInput();
     }
     $podup->update($data);
     return Redirect::route('pod_ups.index');
 }