c4tech/upload
最新稳定版本:1.0.1
Composer 安装命令:
composer require c4tech/upload
包简介
A basic package for handling uploaded files.
README 文档
README
File uploads are nice. We were processing uploaded files in so many applications, that it became easier to make a single, polymorphic relation for reuse across applications and entities.
What's in the box?
The Upload model is simple enough. It comes paired with traits, for both Models and Repositories, to provide the necessary functionality to relate to uploads.
Installation and setup
- Add
"c4tech/upload": "1.x"to your composer requirements and runcomposer update. - Add
C4tech\Upload\ServiceProviderto your service providers config array. - Run
php artisan vendor:publishto get the migrations. - Run
php artisan migrateto set up the migrations. - (Optional) Edit
config/upload.phpand change entries inmodelsandreposto match your class names. - (Optional) Map the Repository Facades in your facades config array for fast access:
a.
"Upload" => "C4tech\Upload\Facade"
统计信息
- 总下载量: 125
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-06