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