Laravision Uploader
, (*1)
This package expects that you are using Laravel 5.1 or above., (*2)
), (*3)
Install
In order to install Laravel 5 Laravision Uploader :, (*4)
1) You will need to import the laravision/uploader package via composer:, (*5)
composer require laravision/uploader
2) Add the service provider to your config/app.php file within the providers key:, (*6)
// ...
'providers' => [
/*
* Package Service Providers...
*/
Laravision\Uploader\UploaderServiceProvider::class,
],
// ...
3) Add the aliases to your config/app.php file within the aliases key:, (*7)
// ...
'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., (*8)
Note
Please report any issue you find in the issues page.
Pull requests are welcome., (*9)