Files
faveo/vendor/unisharp/laravel-filemanager/doc/installation.md
2016-06-13 20:41:55 +05:30

1.5 KiB

Documents

  1. Installation
  2. Intergration
  3. Config
  4. Customization

Requirements

  • php >= 5.5
  • Laravel 5
  • requires intervention/image (to make thumbs, crop and resize images).

Notes

  • For laravel 5.2, please set 'middlewares' => ['web', 'auth'], in config/lfm.php
  • With laravel-filemanager >= 1.3.0, the new configs valid_image_mimetypes and valid_file_mimetypes restrict the MIME types of the uploading files.

Installation

  1. Install package

        composer require unisharp/laravel-filemanager
    
  2. Edit config/app.php :

    Add service providers

        Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider::class,
        Intervention\Image\ImageServiceProvider::class,
    

    And add class aliases

        'Image' => Intervention\Image\Facades\Image::class,
    
  3. Publish the package's config and assets :

        php artisan vendor:publish --tag=lfm_config
        php artisan vendor:publish --tag=lfm_public
    
  4. Ensure that the files & images directories (in config/lfm.php) are writable by your web server.