Backpack admin interface for files and folder, using barryvdh/laravel-elfinder. This package literally just:
- creates a
public/uploads
folder; - installs
barryvdh/laravel-elfinder
; - publishes an elFinder config and view, for elFinder to play nice with Backpack;
- adds a menu item to the sidebar;
From your command line, require the package (this will also require barryvdh/laravel-elfinder):
composer require afzalsabbir/filemanager
Then run the install process:
php artisan backpack:filemanager:install
That's it. Hit refresh in your admin panel, and you'll find a new sidebar item pointing to the File Manager.
Add this line in file: app\Http\Kernel.php
and property: $middlewareGroups['web']
protected $middlewareGroups = [
'web' => [
...
\Backpack\FileManager\Middleware\FileManagerMiddleware::class,
...
],
];
Then publish the config, assets and view files:
php artisan vendor:publish --provider=Backpack\FileManager\FileManagerServiceProvider
You can use elFinder in Backpack:
- stand-alone, by accessing the
/admin/elfinder
route (see screenshot above); - inside the
browse
,browse_multiple
orckeditor
field types;
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
MIT. Please see the license file for more information.