/** * Delete the selected entries. * * @param Search|Search $search * @param array $selected */ public function handle(Search $search, array $selected) { foreach ($selected as $id) { $search->delete($id); } if ($selected) { $this->messages->success(trans('streams::message.delete_success', ['count' => count($selected)])); } }
/** * Delete the item from the search index. * * @param EntryInterface $entry * @param $config */ public function delete(EntryInterface $entry, $config) { $config = $this->input->read($entry, $config); $this->search->delete(array_get($config, 'id')); }