🌴 An upload component that allows you to save more time playing LOL.
PHP JavaScript CSS HTML
Latest commit 65bab4c Jan 6, 2017 @overtrue Merge bug.
Permalink
Failed to load latest commit information.
src
tests
.gitattributes
.gitignore
README.md
composer.json
gulpfile.js
package.json
phpunit.xml.dist

README.md

Laravel Uploader

🌴 An upload component that allows you to save more time playing LOL.

Installing

$ composer require overtrue/laravel-uploader -vvv

then register the package service provider, add the following line to providers section of config/app.php:

Overtrue\LaravelUploader\UploadServiceProvider::class,

and publish the assets using command:

$ php artisan vendor:publish --provider=Overtrue\\LaravelUploader\\UploadServiceProvider

Usage

  1. Add the uploader component to right position of your form:

    @uploader('images')

    or assign form name:

    @uploader('images', ['name' => 'images'])

    or set max files:

    @uploader('images', ['max' => 10])

    and strategy (default: 'default'):

    @uploader('images', ['strategy' => 'avatar'])
  2. Don't forget import uploader assets at the end of your template:

    @uploader('assets')

License

MIT