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