/** * @return \Illuminate\View\View */ public function destroy() { $idArray = $_REQUEST["ids"]; Card::destroy($idArray); $cardpack = Cardpack::findOrFail($_REQUEST["cardpackid"]); return view('cards._table', compact('cardpack')); }