ianrothmann/laravel-rocket-upload
最新稳定版本:0.8.1
Composer 安装命令:
composer require ianrothmann/laravel-rocket-upload
包简介
Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.
README 文档
README
A Laravel 5 handler for file uploads with the Rocket Upload Vue component.
Installation
composer require ianrothmann/laravel-rocket-upload
in config/app.php
Service Provider
IanRothmann\LaravelRocketUpload\ServiceProviders\RocketUploadServiceProvider::class
Facade
'RocketUpload' =>IanRothmann\LaravelRocketUpload\Facades\RocketUpload::class
Examples
An example of an Image
return RocketUpload::request($request) ->disk('s3') //optional ->directory('uploadedfiles') ->thumbnail($w,$h,$fit) //$fit=true by default, if false it will resize the picture and not cut off ->maxDimensions($w,$h) ->processImageWith(function(Image $image){ //Intervention Image Object //Do something here return $image; }) ->afterUpload(function(File $file){ //Do something with file model here }) ->handle();
An example of a file.
return RocketUpload::request($request) ->disk('s3') //optional ->directory('uploadedfiles') ->processWith(function($file_contents){ //Do something here return $file_contents; }) ->handle();
Be careful with ->processWith(), it loads the entire file into memory.
统计信息
- 总下载量: 5.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-07-28