public function clean()
{
// id 는 배열로 넘어옴
$ids = Input::get('ids');
if (count($ids) == 0) {
// 에러
}
$baskets = [];
foreach (XeTrash::gets() as $basket) {
if (in_array($basket, $ids)) {
$baskets[] = $basket;
}
}
XeTrash::clean($baskets);
if (Input::get('redirect') != null) {
return redirect(Input::get('redirect'));
} else {
return redirect()->route('manage.trash.index');
}
}