/** * restore from trash * * @return \Illuminate\Http\RedirectResponse|Redirect */ public function restore() { $documentIds = Input::get('id'); $documentIds = is_array($documentIds) ? $documentIds : [$documentIds]; $items = $this->handler->gets(['ids' => $documentIds], []); foreach ($items as $item) { XeDB::beginTransaction(); $this->handler->restore($item); XeDB::commit(); } return $this->presenter->makeApi([]); }