1. Run these lines

     composer require unisharp/laravel-filemanager
     php artisan vendor:publish --tag=lfm_config
     php artisan vendor:publish --tag=lfm_public
     php artisan storage:link
  2. Edit APP_URL in .env.

Full Installation Guide

  1. Install package

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

    * For Laravel 5.5 and up, skip to step 3. All service providers and facades are automatically discovered.

    Add service providers


    And add class aliases

     'Image' => Intervention\Image\Facades\Image::class,

    Code above is for Laravel 5.1. In Laravel 5.0 should leave only quoted class names.

  3. Publish the package’s config and assets :

     php artisan vendor:publish --tag=lfm_config
     php artisan vendor:publish --tag=lfm_public
  4. (optional) Run commands to clear cache :

     php artisan route:clear
     php artisan config:clear
  5. Ensure that the files & images directories (in config/lfm.php) are writable by your web server (run commands like chown or chmod).

  6. Create symbolic link :

     php artisan storage:link
  7. Edit APP_URL in .env.

  8. Edit routes/web.php :

    Create route group to wrap package routes.

     Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {

    Make sure auth middleware is present to :

    1. prevent unauthorized uploads
    2. work properly with multi-user mode
  9. make sure database exists

  10. login and visit /laravel-filemanager/demo

Installing alpha version

What’s next

  1. Check the integration document to see how to apply this package.

  2. Check the config document to discover the flexibility of this package.