huydevct/media-storage
最新稳定版本:1.1.6
Composer 安装命令:
composer require huydevct/media-storage
包简介
media storage package
README 文档
README
Config App
- add this line to service provider config/app.php
\Huy\MediaStorage\providers\MediaStorageServiceProvider::class,
- run this command to publish config
php artisan vendor:publish --tag=media_storage
# Vị trí file config config/media_storage.php
- add these lines to .env
IMAGE_MEDIUM= IMAGE_SMALL= IMAGE_EXTRA_SMALL= VIDEO_MEDIUM= VIDEO_SMALL=
- route of these api
http://localhost:8000/storage/images
http://localhost:8000/storage/videos
- you can replace your domain on
http://localhost:8000 - request accept form-data with key
fileorfiles - this is a example of these apis' postman
curl --location 'http://localhost:8000/storage/images' \
--header 'Accept: application/json' \
--form 'file=@"your-file"'
- if you got nothing after call these apis, you need to remember add header
Accept: application/json
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-03-01