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