芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Events/UnzipUpdateController.php
user()) || (! $request->user()->isOwner())) { return response()->json([ 'success' => false, 'message' => 'You are not allowed to update this app.', ], 401); } $request->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); } } }