el-joe/extra-service
Composer 安装命令:
composer require el-joe/extra-service
包简介
ExtraService Laravel package: upload file and return full central-domain path
README 文档
README
Simple Laravel package that provides an API endpoint to accept a file upload and return the full file URL on the central domain.
Installation (local development / path repository):
- In your main project's
composer.jsonadd a path repository entry:
"repositories": [
{
"type": "path",
"url": "./ExtraService"
}
]
- Require the package:
composer require el-joe/extra-service:dev-main
- (Optional) Publish config to set
CENTRAL_DOMAINor editconfig/extra_service.php:
php artisan vendor:publish --provider="ElJoe\\ExtraService\\ExtraServiceServiceProvider" --tag=config
Usage:
POST to /api/extra-service/upload with form-data key file.
Response:
{
"path": "https://central.example/storage/extra_service/filename.ext"
}
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-12