芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/app/Http/Controllers/Admin/SubscribeController.php
search ?: ''; $data['sort']['column'] = $request->sort['column'] ?? 'email'; $data['sort']['order'] = $request->sort['order'] ?? 'asc'; $data['subscribers'] = $repository->paginateSearchResult($data['search'], $data['sort']); return Inertia::render('Subscribers/Index', $data); } /** * Delete subscriber */ public function destroy(Subscriber $subscriber, SubscribeRepository $repository): RedirectResponse { $repository->destroy($subscriber); return redirect()->route('admin.subscribers.index')->with('success', 'Subscriber successfully deleted'); } /** * Bulk delete */ public function bulkDelete(Request $request, SubscribeRepository $repository): RedirectResponse { $repository->bulkDelete($request); return redirect()->route('admin.subscribers.index')->with('success', 'Selected subscriber successfully deleted'); } }