delete(); return response()->json([ 'message' => __('Comment deleted successfully.'), 'redirect' => route('admin.blogs.index') ]); } public function deleteAll(Request $request) { Comment::whereIn('id', $request->ids)->delete(); return response()->json([ 'message' => __('Selected Comments deleted successfully'), 'redirect' => route('admin.blogs.index') ]); } }