| Package Data | |
|---|---|
| Maintainer Username: | ianrothmann |
| Maintainer Contact: | ian@conceptsphere.com (Ian Rothmann) |
| Package Create Date: | 2017-06-07 |
| Package Last Update: | 2019-07-20 |
| Language: | PHP |
| License: | Apache-2.0 |
| Last Refreshed: | 2025-10-20 15:05:48 |
| Package Statistics | |
|---|---|
| Total Downloads: | 5,657 |
| Monthly Downloads: | 291 |
| Daily Downloads: | 32 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A Laravel 5 handler for file uploads with the Rocket Upload Vue component.
composer require ianrothmann/laravel-rocket-upload
in config/app.php
Service Provider
IanRothmann\LaravelRocketUpload\ServiceProviders\RocketUploadServiceProvider::class
Facade
'RocketUpload' =>IanRothmann\LaravelRocketUpload\Facades\RocketUpload::class
An example of an Image
return RocketUpload::request($request)
->disk('s3') //optional
->directory('uploadedfiles')
->thumbnail($w,$h)
->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.