芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/app/Http/Controllers/Admin/ContactController.php
search ?: ''; $data['sort']['column'] = $request->sort['column'] ?? 'ticket_id'; $data['sort']['order'] = $request->sort['order'] ?? 'desc'; $data['contacts'] = $repository->paginateSearchResult($data['search'], $data['sort']); return Inertia::render('Contacts/Index', $data); } /** * Show contacts */ public function show(Contact $contact): Response { $contact->update(['is_open' => '1']); $data['contact'] = $contact; return Inertia::render('Contacts/Show', $data); } /** * Delete contact */ public function destroy(Contact $contact, ContactRepository $repository): RedirectResponse { $repository->destroy($contact); return back()->with('success', 'Contact successfully deleted'); } /** * Bulk delete contact */ public function bulkDelete(Request $request, ContactRepository $repository): RedirectResponse { $repository->bulkDelete($request); return back()->with('success', 'Selected contact successfully deleted'); } }