siaoynli/laravel-upload

laravel upload file package


License
MIT

Documentation

laravel 上传文件包

install

this package only for laravel5.8

composer require siaoynli/upload

add the ServiceProvider to the providers array in config/app.php

Siaoynli\Upload\UploadServiceProvider::class,

If you want to use the facade to log messages, add this to your facades in app.php:

 'Upload' => Siaoynli\Upload\Facades\Upload::class,

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="Siaoynli\Upload\UploadServiceProvider"

Usage

Upload::do()