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