darvis/livewire-flux-editor-filemanager
| Install | |
|---|---|
composer require darvis/livewire-flux-editor-filemanager |
|
| Latest Version: | v1.5.4 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Sep 29, 2026 |
| Links: | GitHub · Packagist |
darvis/livewire-flux-editor-filemanager
A Laravel package that connects Laravel Filemanager to the rich text editor of Flux Pro in a Livewire application. Two toolbar buttons open the file manager in a popup to insert images and file links, images get a resize and align menu and an edit modal, and image files can be dropped on the editor or pasted from the clipboard.
Try the live demo on fluxui-filemanager.com and use the editor, the file manager, the image menu and drag and drop in your browser before you install anything.
Features
- An image button and a file link button that open Laravel Filemanager in a popup, for every Flux editor on the page
- Single click on an image: preset widths, a custom percentage, and left, center and right alignment
- Double click on an image: alt text, title, width, alignment, extra CSS classes and inline styles
- File links with text, target, classes and styles; click a link in the editor to edit it
- Drop and paste of image files, embedded as base64 or uploaded to Laravel Filemanager
- Plain HTML output:
<img>and<a>tags with attributes, no shortcodes flux-filemanager:installsets up Laravel Filemanager, the npm packages and yourapp.js;flux-filemanager:checkverifies the result- Language files for English, Dutch and German, also used by the JavaScript menus and modals
Requirements
- PHP 8.2+, Laravel 11, 12 or 13, Livewire 3 or 4
- Flux and Flux Pro 2.0.2 or newer. The editor is a Flux Pro component, and Flux Pro needs a paid licence from fluxui.dev. Set up Flux Pro in your application first (
php artisan flux:activate), so that Composer can reach the private Flux repository - Laravel Filemanager 2, installed as a dependency
- Node with npm and Vite
The package adds no authentication and does not sanitise the HTML from the editor. Read Uploads and security before you give the editor to users.
Installation
composer require darvis/livewire-flux-editor-filemanager
php artisan flux-filemanager:install
php artisan flux-filemanager:check
Then make sure the file manager is behind a login. In config/lfm.php:
'middlewares' => ['web', 'auth'],
Quick start
In the Blade view of a Livewire component with a public string $content = ''; property:
<flux:field>
<flux:label>Content</flux:label>
<x-flux-filemanager-editor wire:model="content" />
<flux:error name="content" />
</flux:field>
The component renders <flux:editor> with the image and file link buttons. $content receives the HTML. Your first editor has the complete example, from migration to public page.
Documentation
Full documentation: https://arviddejong.github.io/livewire-flux-editor-filemanager/
- Installation: the Flux Pro requirement, the installer step by step, and how to check that it works
- Your first editor: one complete example, from migration to the public page
- Configuration: every config key and the component attributes
- Image editing: the resize menu, the edit modal and the HTML they write
- File links: insert and edit links to files
- Drag and drop: base64 or upload, and where the limits are checked
- Uploads and security: what the package checks and what it leaves to Laravel Filemanager and your application
- Localization: the language files, changing a text, adding a language
- Testing: test a Livewire form that uses the editor
- Troubleshooting: symptoms, causes and fixes, with the literal messages
- How it works: the JavaScript and DOM contract
- FAQ: short answers to common questions
Laravel Boost
The package ships a guideline and a skill for Laravel Boost. Run php artisan boost:install, or php artisan boost:update --discover in a project that already uses Boost.
Testing
composer test # Pest
composer lint # Pint, check only
composer format # Pint, fixes
composer analyse # Larastan
Installing the development dependencies needs a Flux Pro licence: composer config http-basic.composer.fluxui.dev your-email your-license-key.
Changelog
See CHANGELOG.md.
Support the package
If darvis/livewire-flux-editor-filemanager saves you time, a star on GitHub or a favourite on Packagist helps other developers find it.
Contributing
See CONTRIBUTING.md.
Security
Found a security problem? Report it privately, see SECURITY.md.
License
MIT. See LICENSE.
Related Packages
TipTap-based rich text editor for Laravel Livewire (wire:ignore + Alpine + wire:...
Premium Laravel Livewire WYSIWYG Editor Package with Alpine.js - CKEditor 4, CKE...
