/** * Update the specified reporteager in storage. * * @param int $id * @return Response */ public function update($report_id, $id) { $reporteager = ReportEager::findOrFail($id); ReportEager::setRules('update'); $data = Input::all(); if (!$reporteager->canUpdate()) { return $this->_access_denied(); } if (!$reporteager->update($data)) { return $this->_validation_error($reporteager); } if (Request::ajax()) { return $reporteager; } Session::remove('_old_input'); return Redirect::action('ReportEagersController@edit', [$report_id, $id])->with('notification:success', $this->updated_message); }