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 UI to browse, upload, manage, and select files/images in Laravel apps. Supports popular editors, configurable disks/paths, customization, and events—ideal for CMS/admin panels.

View on GitHub
Deep Wiki
Context7

Routes

  1. 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
  2. Make sure urls below is correspond to your route (remember to include type parameter ?type=Images or ?type=Files) :

  • CKEditor
    CKEDITOR.replace('editor', {
      filebrowserImageBrowseUrl: '/your-custom-route?type=Images',
      filebrowserBrowseUrl: '/your-custom-route?type=Files'
    });
    
  • TinyMCE
    ...
    var cmsURL = editor_config.path_absolute + 'your-custom-route?field_name='+field_name+'&lang='+ tinymce.settings.language;
    if (type == 'image') {
      cmsURL = cmsURL + "&type=Images";
    } else {
      cmsURL = cmsURL + "&type=Files";
    }
    ...
    

Views

Publish views:

php artisan vendor:publish --tag=lfm_view

Edit views in /resources/views/vendor/laravel-filemanager.

Translations

Publish translations:

php artisan vendor:publish --tag=lfm_lang
  1. Copy /resources/lang/vendor/laravel-filemanager/en to /resources/lang/vendor/laravel-filemanager/<LANGUAGE>.
  2. Edit translations as you please.
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.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony