/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Store::destroy($id); }
public function destroy(Request $request, $id) { empty($id) && !empty($request->input('id')) && ($id = $request->input('id')); $id = (array) $id; foreach ($id as $v) { $store = Store::destroy($v); } return $this->success('', count($id) > 5, compact('id')); }