hellopeterlee/laravel-uploader is a Laravel package.
It currently has 0 GitHub stars and 20 downloads on Packagist (latest version v0.1.2).
Install it with composer require hellopeterlee/laravel-uploader.
Discover more Laravel packages by hellopeterlee
or browse all Laravel packages to compare alternatives.
Last updated
:palm_tree: An upload component that allows you to save more time playing LOL.
register provider and configuration.
$ composer require hellopeterlee/laravel-uploader -vvv
then register the package service provider, add the following line to providers section of config/app.php:
PeterLee\Scaffold\UploadServiceProvider::class,
and publish the assets using command:
$ php artisan vendor:publish --provider=HelloPeterlee\\LaravelUploader\\UploadServiceProvider
Routing
You can register routes in routes/web.php or other routes file:
\LaravelUploader::routes();
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'])
Don't forget import uploader assets at the end of your template:
@uploader('assets')
MIT