laravision/uploader

Uploader files system

dev-master 2017-07-18 04:42 UTC

This package is not auto-updated.

Last update: 2024-11-10 04:12:14 UTC


README

Version License Total Downloads

This package expects that you are using Laravel 5.1 or above.

Laravision Uploader)

Install

In order to install Laravel 5 Laravision Uploader :

  1. You will need to import the laravision/uploader package via composer:
composer require laravision/uploader
  1. Add the service provider to your config/app.php file within the providers key:
// ...
'providers' => [
    /*
     * Package Service Providers...
     */

    Laravision\Uploader\UploaderServiceProvider::class,
],
// ...
  1. Add the aliases to your config/app.php file within the aliases key:
// ...  

'aliases' => [ 

    /*
     * Package Class Aliases...
     */
        'Uploader' => Laravision\Uploader\UploaderFacade::class,

    ],
// ...

Usage

  • Upload file named picture :
	public function store(Request $img){   
		//...
		
		$uploader = Uploader::run($img->file('picture')); 
		
		//...
	}

License

Laravision Visiteur is free and open-sourced software distributed under the terms of the MIT license.

Note

Please report any issue you find in the issues page.
Pull requests are welcome.