/** * Remove the specified reporteager from storage. * * @param int $id * @return Response */ public function destroy($report_id, $id) { $reporteager = ReportEager::findOrFail($id); if (!$reporteager->canDelete()) { return $this->_access_denied(); } $reporteager->delete(); if (Request::ajax()) { return Response::json($this->deleted_message); } return Redirect::action('ReportEagersController@index', $report_id)->with('notification:success', $this->deleted_message); }