validate(['file' => 'required|file']); $uuid = (string) Str::uuid(); $path = $request->file('file')->storeAs(PublicFormController::TMP_FILE_UPLOAD_PATH, $uuid); return response()->json([ 'uuid' => $uuid, 'key' => $path, ], 201); } }