iemand002 / laravel-filemanager by iemand002

Multilanguage filemanager package based on tutorial from http://laravelcoding.com/blog/laravel-5-beauty-upload-manager?tag=L5+Beauty
111
1
2
Package Data
Maintainer Username: iemand002
Maintainer Contact: ruud.lamers@live.nl (Ruud Lamers)
Package Create Date: 2016-05-23
Package Last Update: 2023-09-30
Home Page:
Language: Blade
License: Unknown
Last Refreshed: 2024-11-20 03:02:32
Package Statistics
Total Downloads: 111
Monthly Downloads: 3
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

laravel-filemanager

Multi language file manager package based on https://web.archive.org/web/20160425103612/http://laravelcoding.com:80/blog/laravel-5-beauty-upload-manager?tag=L5+Beauty Using intervention/image to create image transforms (inspired by matriphe/imageupload).
Now able to select multiple files at once using localstorage

Installation

Requirements

  • Laravel 5.2 (version 0.x), Laravel 5.5+ (version 1.x)
  • Twitter Bootstrap 3
  • Jquery

Composer

composer require iemand002/filemanager

Register (when not using autodiscover)

Register the provider in your app.php config

'providers' => [
    Iemand002\Filemanager\FilemanagerServiceProvider::class,
],

'aliases' => [
    'Filemanager' => Iemand002\Filemanager\FilemanagerFacade::class,
],

Publish configurations

Configuration file (config/filemanager.php)

php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="config"

Migration file (optional) (2017_12_29_004110_create_image_upload_table.php)

php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="migration"

Views (vendor/iemand002/filemanager)

php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="views"

Translations (lang/vendor/filemanager)

php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="translations"

How to use

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 template 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") }} Get the image width and height via the uploadId: {{ Filemanager::getWidth(123) }} and {{ Filemanager::getHeight(123) }} Also compatable with the transform: {{ Filemanager::getWidth(123, "transformHandle") }} and {{ Filemanager::getHeight(123, "transformHandle") }} Want to sync earlier uploaded files in the folder with the database? Surf to yourwebsite.io/admin/sync to add missing files in the database.

Demo

Create a route like the following to see an example usage.

Route::get('demo',function () {
    return view('iemand002/filemanager::demo.demo');
});

Build-in languages

  • Dutch (nl)
  • English (en)

Changelog

2.0.0
Added:

  • Multiple files select option

Changed:

  • Now using localstorage to communicate te data back to the main view

Check previous changes in CHANGELOG.md