/** * Remove the specified resource from storage. * * @param int/array $id * @return Response */ public function destroy($id) { // delete base on id $post = Post::destroy(explode(',', $id)); if ($post == 0) { // no resource deleted, return error object return $this->postService->notFound(explode(',', $id)); } // otherwise return delete response return $this->postService->deletePostOkResponse(); }