unisharp/laravel-filemanager
UniSharp Laravel Filemanager adds a responsive web file manager to Laravel for uploading, organizing, and selecting files/images. Includes routes, views, configuration, events, and easy integration with editors and custom apps.
Pros:
fileUploaded) enable extensibility for auditing, notifications, or workflows.Cons:
auth middleware) out of the box.valid_mime, max_size) may need overrides.| Risk Area | Severity | Mitigation |
|---|---|---|
| Performance Bottlenecks | Medium | Thumbnail generation (should_create_thumbnails) and large file uploads may strain CPU. Test with php_ini_overrides (e.g., memory_limit). |
| Security Gaps | High | Default routes (/laravel-filemanager) must be protected (auth middleware). Validate valid_mime and max_size strictly to prevent malicious uploads. |
| Version Compatibility | Medium | Last release (2026) suggests active maintenance, but test with your Laravel version (e.g., 10.x). Check upgrade docs. |
| Customization Complexity | Low | Publishable views/translations (vendor:publish) simplify theming, but deep customization (e.g., folder logic) requires extending ConfigHandler. |
| Cloud Storage Quirks | Medium | S3/Google Cloud may need adjusted disk config in lfm.php (e.g., visibility: 'public'). Test with storage:link. |
lfm.php breaks uploads?disk:list)./api/upload) to proxy filemanager routes.composer require unisharp/laravel-filemanager.php artisan vendor:publish --tag=lfm_config --tag=lfm_view.storage:disk("s3")).Route::redirect('/old-upload', '/laravel-filemanager')).filebrowserImageBrowseUrl).| Component | Compatibility Notes |
|---|---|
| Laravel Versions | Tested with Laravel 8+; may need polyfills for older versions (check upgrade docs). |
| WYSIWYG Editors | CKEditor 4/5, TinyMCE 4/5, Summernote: Use provided JS configs. For others, extend via events. |
| Storage Backends | Works with any Laravel disk (S3, GCS, local). Configure disk in lfm.php. |
| Authentication | Uses Laravel’s auth; add auth middleware to routes. |
| Frontend Frameworks | Iframe/standalone buttons work with React/Vue, but API access requires custom endpoints. |
lfm.php (disk, routes, folder categories).filebrowserImageBrowseUrl).vendor:publish).ConfigHandler for private/shared folders.should_create_thumbnails: false first).lfm.php or ConfigHandler may need backporting after updates.storage:link --remove) must include filemanager directories.How can I help you explore Laravel packages today?