redirectTo("/pc/"); } public function upload() { $file = request()->file("file"); $category = request()->input("category", "default"); $path = "/storage/" . $file->store(date("Ymd") . "/" . $category, "public"); return [ "code" => 200, "data" => [ "upload_url" => config("app.url") . $path, ], ]; } }