udhuong/laravel-upload-file is a Laravel package for package for upload file.
It currently has 0 GitHub stars and 0 downloads on Packagist.
Install it with composer require udhuong/laravel-upload-file.
Discover more Laravel packages by udhuong
or browse all Laravel packages to compare alternatives.
Last updated
Laravel-Upload-File is a package for uploading files with Laravel.
image for JPEG, PNG or GIF).Upload a file to the server, and place it in a directory on the filesystem disk named "uploads". This will create a Media record that can be used to refer to the file.
$file = LaravelUploadFile::fromSource($request->file('images'))
->toDestination('s3', 'uploads')
->upload();
Add the package to your Laravel app using composer
composer require udhuong/laravel-upload-file
Register the package's service provider in config/app.php. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.
'providers' => [
...
Udhuong\LaravelUploadFile\UploadFileServiceProvider::class,
...
];
The package comes with a Facade for the image uploader, which you can optionally register as well. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.
'aliases' => [
...
'FileUploader' => Plank\Mediable\FileUploader::class,
...
]
Publish the config file (config/mediable.php) of the package using artisan.
php artisan vendor:publish --provider="Udhuong\LaravelUploadFile\UploadFileServiceProvider"
Updating...
This package is released under the MIT license (MIT).
Package developed based on laravel-mediable of plank/laravel-mediable
Plank is a web development agency based in Hanoi, Vietnam.