validate([ 'path' => 'required', ]); $path = Updater::copyFiles($request->path); return response()->json([ 'success' => true, 'path' => $path ]); } }