Downloads
Stars
Version
Multi language filem anager package based on http://laravelcoding.com/blog/laravel-5-beauty-upload-manager?tag=L5+Beauty
Using intervention/image
to create image transforms (inspired by matriphe/imageupload
).
composer require iemand002/filemanager 0.3
After that register the provider in your app.php config
'providers' => [
Iemand002\Filemanager\FilemanagerServiceProvider::class,
],
'aliases' => [
'Filemanager' => Iemand002\Filemanager\FilemanagerFacade::class,
],
Add or edit in filesystems.php config the following disk
'public' => [
'driver' => 'local',
'root' => public_path(config('filemanager.uploads.webpath')),
'visibility' => 'public',
],
The configuration file (filemanager.php)
php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="config"
The migration file (2017_12_29_004110_create_image_upload_table.php)
php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="migration"
The views (vendor/iemand002/filemanager)
php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="views"
Run the migration using php artsan migrate
Just surf to yourwebsite.io/admin/upload
By default it has the web
middleware for Laravel 5.2
To change the required middlewares and the prefix change the config file
Get the url of the uploaded file in your blade via the uploadId: {{ Filemanager::getUrl(123) }}
If you wish to show a transformed version of an image add the optional $transfromHandle
: {{ Filemanager::getUrl(123, "transformHandle") }}
Want to sync earlier uploaded files in the folder? Surf to yourwebsite.io/admin/sync
to add missing files in the database.
See the demo folder on how to use it.