hxd / filemanager
File manager for Laravel
Installs: 121
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^8.0
- laravel/framework: 8.* || 9.*
This package is auto-updated.
Last update: 2024-10-20 17:46:32 UTC
README
Filemanager is a file manager for laravel Base on Thainph\Filemanager
.
Installation
- Config in app.php
HXD\Filemanager\FileManagerServiceProvider::class,
- Publish config file:
php artisan vendor:publish --tag=file-manager-config
- Publish asset files:
php artisan vendor:publish --tag=file-manager-assets
- Config guards, mimes... in
config/file-manager.php
Use for CKeditor
Config CKeditor:
const options = {
filebrowserImageBrowseUrl: {your-domain}/file-manager/browser,
filebrowserImageUploadUrl: {your-domain}/file-manager/single-upload,
window.CKEDITOR.replace(editor, options);
};
User for selector
Embed your js like:
const fileManagerClient = {
files: [],
onSelected(payload) {
this.files = payload;
// Callback to your slelect event
}
}
window.fileManagerClient = fileManagerClient;
fileManagerClient.files
will store files which you selected.
Api
Comming soon...