Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Filemanager Laravel Package

unisharp/laravel-filemanager

UniSharp Laravel Filemanager adds a responsive web-based file manager to Laravel apps. Browse, upload, organize and delete files and images, integrate with editors like TinyMCE/CKEditor, configure disks, permissions, and customization options.

View on GitHub
Deep Wiki
Context7

Requirements

  • php >= 5.4
  • exif extension
  • fileinfo extension
  • GD Library >=2.0 or Imagick PHP extension >=6.5.7
  • Laravel 5
  • requires intervention/image (to make thumbs, crop and resize images).

TL;DR

  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) Install required dependency with v3.* of intervention/image:

    This package use intervention/image to perform image cropping/resizing and generating thumbnails. Since v3.* of intervention/image does not support Laravel by default, the service provider need to be installed with the following scripts. Details can be found here: https://github.com/Intervention/image-laravel

    composer require intervention/image-laravel
    php artisan vendor:publish --provider="Intervention\Image\Laravel\ServiceProvider"
    

    * Do not run these scripts if you use v2.* of intervention/image.

  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 () {
        \UniSharp\LaravelFilemanager\Lfm::routes();
    });
    

    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

  • Run composer require unisharp/laravel-filemanager:dev-master to get the latest developer 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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope