2017 © Pedro Peláez
 

library laravel-rocket-upload

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

image

ianrothmann/laravel-rocket-upload

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  • Sunday, November 12, 2017
  • by ianrothmann
  • Repository
  • 1 Watchers
  • 0 Stars
  • 142 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 15 % Grown

The README.md

LaravelRocketUpload

A Laravel 5 handler for file uploads with the Rocket Upload Vue component., (*1)

Installation

composer require ianrothmann/laravel-rocket-upload, (*2)

in config/app.php, (*3)

Service Provider IanRothmann\LaravelRocketUpload\ServiceProviders\RocketUploadServiceProvider::class, (*4)

Facade, (*5)

'RocketUpload' =>IanRothmann\LaravelRocketUpload\Facades\RocketUpload::class, (*6)

Examples

An example of an Image, (*7)

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., (*8)

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., (*9)

The Versions

12/11 2017

dev-master

9999999-dev

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann

12/11 2017

0.7.3

0.7.3.0

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann

12/11 2017

0.7.2

0.7.2.0

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann

12/11 2017

0.7.1

0.7.1.0

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann

21/10 2017

0.7

0.7.0.0

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann

02/09 2017

0.6.2

0.6.2.0

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann

28/07 2017

0.6.1

0.6.1.0

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann

28/07 2017

0.6

0.6.0.0

Back-end handler for file uploads. Designed to complement the Rocket Vue App Framework Multiple File Upload.

  Sources   Download

Apache2

The Requires

 

by Ian Rothmann