/** * Remove the specified resource from storage. * * @param int $id * * @return \Illuminate\Http\Response */ public function postDestroy($id = FALSE) { $response['status'] = 'error'; $response['message'] = trans('tables.not_removed'); if (!empty($id) && intval($id) > 0) { if (Model_Tables::removeTable($id) === TRUE) { $response['status'] = 'success'; $response['message'] = trans('tables.removed'); } } return response()->json($response); }