fluidtheory / s3-filemanager
File Manager with S3 Intrgration and integrate with Trumbowyg Editor
Installs: 12 031
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Language:Blade
Requires
- dev-master
- 1200841927979085.x-dev
- 1199181201661444.x-dev
- 1164727132135546.x-dev
- 1158124355827642.x-dev
- 1158124355827641.x-dev
- 1155862725780609.x-dev
- 1130121796321689.x-dev
- 3453159800.x-dev
- v2.9.0
- v2.8.9
- v2.8.8
- v2.8.7
- v2.8.6
- v2.8.5
- v2.8.4
- v2.8.3
- v2.8.2
- v2.8.1
- v2.8.0
- v2.7.9
- v2.7.8
- v2.7.7
- v2.7.6
- v2.7.5
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.6.10
- v2.6.9
- v2.6.8
- v2.6.7
- v2.6.6
- v2.6.5
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.9
- v2.5.8
- v2.5.7
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.9
- v2.4.8
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.9
- v1.8.8
- 1.8.7
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8
- v1.7
- v1.6
- 1.5
- v1.3
- v1.2
- v1.1
- v1.0
- dev-nileshpandey98-patch-2-1
- dev-nileshpandey98-patch-2
This package is auto-updated.
Last update: 2025-04-10 09:41:28 UTC
README
File Manager with S3 Intrgration and integrate with Trumbowyg Editor
Steps to Integarte File Manager with S3 Integration
- Run following command to install package:
composer require fluidtheory/s3-filemanager
- Add Publisher class in app.php of config folder
Fluidtheory\Filemanager\FileManagerServiceProvider::class
- After successful installation, to publish files to project you need to run,
php artisan vendor:publish
- Include File Manager css in header
<link rel="stylesheet" href="/css/filemanager-custom.css">
Note: Include Bootstrap css and js for modal style if not available in your project. Please include jquery file in header
- Include Modal in your view file where input and button are added
@include('filemanager::file-manager.iframe')
- Set following attribute for upload button,
1) data-multiple="true" for multi-select image or data-multiple="false" for single image select 2) Set another attribute data-click=""
- Add input field to set image value
<input type="text" class="form-control fm-image" name="new_images" value="" readonly>
- Pass folder name with hidden input in view file
<input type="hidden" id="folder-id" value="<your-folder-name>">
- Change default value of "FILESYSTEM_DRIVER" in filesystems.php file to s3 and add update s3 array as follwoing
'driver' => 's3', 'key' => env('AWS_KEY'), 'secret' => env('AWS_SECRET'), 'region' => env('AWS_REGION'), 'bucket' => env('AWS_BUCKET'), 'visibility' => 'public', 'url' => env('AWS_URL'),
- Final Step , Set following env variable in .env file with value
AWS_KEY= AWS_SECRET= AWS_REGION= AWS_BUCKET= VISIBILITY='public' AWS_BLOG_URL= AWS_URL=
If you want to include file manager in trumbowyg editor please include following:
Include following js file first, <script src="/js/file-manager/trumbowyg.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.15.1/plugins/emoji/trumbowyg.emoji.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.15.1/plugins/table/trumbowyg.table.min.js"></script>
- Also, include css of trumbowyg editor
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.15.1/ui/trumbowyg.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.15.1/plugins/emoji/ui/trumbowyg.emoji.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.15.1/plugins/table/ui/trumbowyg.table.min.css">
- Final steps for Editor with s3-filemanager, give class to textarea to integrate Trumbowyg editor
$('.<your-class>').trumbowyg();