iemand002/filemanager

Multi language file manager package

Downloads

108

Stars

1

Version

3.0.0-alpha

laravel-filemanager

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).

Installation

Requirements

  • Laravel 5.2 (version 0.3)
  • Twitter Bootstrap
  • Jquery

Composer

composer require iemand002/filemanager 0.3

Laravel

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',
],

Publish configuration

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"

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 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.

Demo

See the demo folder on how to use it.

Build-in languages

  • Dutch (nl)
  • English (en)
iemand002

Author

iemand002