validate([ 'path' => 'required', ]); try { $path = Updater::unzip($request->path); return response()->json([ 'success' => true, 'path' => $path, ]); } catch (\Exception $e) { return response()->json([ 'success' => false, 'error' => $e->getMessage(), ], 500); } } }