el-joe / extra-service
ExtraService Laravel package: upload file and return full central-domain path
v1.1.0
2026-04-12 21:22 UTC
Requires
- php: >=7.4
- illuminate/support: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
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"
}